1
0
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:
2022-03-21 09:12:48 +00:00
parent 0298c81f51
commit e34016667f
4 changed files with 35 additions and 11 deletions

View File

@@ -94,6 +94,8 @@ class User {
return new (require(`./${className}`))(this.id);
}
throw new Error('No user found');
})();
}