-
-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(database): throw Error before creating promise
Promises, even when resolved/rejected immediately after their creation, will destroy any useful information from a stack trace when used over events/exports. Since some people still use the exports rather than MySQL/lib.lua, and for some reason don't know the correct syntax for Lua exports (i.e. using exports.oxmysql.query instead of the CORRECT exports.oxmysql:query) it's comically common for an "untraceable" error to get spit out. Will this help? No. Will everyone expect me to solve their issues? Yes. Go update your scripts to use MySQL/lib.lua and we can all get along stress-free.
- Loading branch information
Showing
3 changed files
with
24 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters