mirror of
https://github.com/matt-fidd/stratos.git
synced 2026-01-01 22:19:26 +00:00
Catch database errors and prevent them from crashing the app
This commit is contained in:
@@ -94,6 +94,8 @@ class User {
|
||||
|
||||
return new (require(`./${className}`))(this.id);
|
||||
}
|
||||
|
||||
throw new Error('No user found');
|
||||
})();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user