mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-31 15:06:15 +02:00
* Some WIP on file area releated stuff - various partially implemented pieces coming together
* Some changes to database.js: Triggers for FTS were not being created properly * Misc fixes & improvements
This commit is contained in:
parent
7da0abdc39
commit
5a0b291a02
14 changed files with 675 additions and 21 deletions
|
@ -19,6 +19,7 @@ class EnigError extends Error {
|
|||
}
|
||||
}
|
||||
|
||||
// :TODO: Just use EnigError for all
|
||||
class EnigMenuError extends EnigError { }
|
||||
|
||||
exports.EnigError = EnigError;
|
||||
|
@ -27,4 +28,5 @@ exports.EnigMenuError = EnigMenuError;
|
|||
exports.Errors = {
|
||||
General : (reason, reasonCode) => new EnigError('An error occurred', -33000, reason, reasonCode),
|
||||
MenuStack : (reason, reasonCode) => new EnigMenuError('Menu stack error', -33001, reason, reasonCode),
|
||||
DoesNotExist : (reason, reasonCode) => new EnigError('Object does not exist', -33002, reason, reasonCode),
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue