My main sources of information so far have been the bookshelf. (It looks as though the e.message resulting from the #catch function is actually coming from MySQL rather than from Checkit) If not, what is the correct way to handle errors more gracefully here? Am I using the #catch block in the correct manner? And if so, why do I still get unhandled error stacktraces.TargetSolutions Check It for Fire, EMS and Law Enforcement Workforce Management by CrewSense Vector EHS. We eliminate all administrative worries in health screenings We manage and maintain all processes during health checks. Given that I introduced Checkit to catch validation errors on the Model level, why is SQL still being executed? Manage your employee scheduling and overtime. Since I have debug: true turned on in my knex config, the block between the stacktrace and the ER_NO_DEFAULT_FOR_FIELD seems to be prepared SQL statements. (I could also be totally misunderstanding the use of catch here) var validationRules = new Checkit(ĮR_NO_DEFAULT_FOR_FIELD: Field 'email' doesn't have a default value I'm trying to use checkit with bookshelf and after adding the checkit rules, intentionally violating them, my promise#catch block doesn't seem to be properly catching the errors.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |