app: catch errors in main
This commit is contained in:
parent
27b12681f6
commit
4d9346e580
1 changed files with 23 additions and 19 deletions
4
app.tsx
4
app.tsx
|
|
@ -65,6 +65,7 @@ App.start({
|
|||
instanceName: "caelestia",
|
||||
icons: "assets/icons",
|
||||
async main() {
|
||||
try {
|
||||
const now = Date.now();
|
||||
|
||||
await initConfig();
|
||||
|
|
@ -89,6 +90,9 @@ App.start({
|
|||
});
|
||||
|
||||
console.log(`Caelestia started in ${Date.now() - now}ms`);
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
}
|
||||
},
|
||||
requestHandler(request, res) {
|
||||
if (request === "reload-css") loadStyleAsync().catch(console.error);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue