mirror of
https://github.com/HangarMC/Hangar.git
synced 2024-11-27 06:01:08 +08:00
fix(frontend): write backend data on error to fix lint error
we don't want deployments to fail, that could be unrecoverable
This commit is contained in:
parent
36e5e07b38
commit
5754c54139
@ -85,6 +85,7 @@ export default defineNuxtModule({
|
||||
} else {
|
||||
backendDataLog("Unknown error while generating backend data:", err);
|
||||
}
|
||||
await fs.writeFile(moduleOptions.path, JSON.stringify({}));
|
||||
}
|
||||
});
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user