feat: improve parsing quest error message

This commit is contained in:
Lin, Hung-Shin committed 2023-11-26 18:31:45 +08:00
1 parent bb968706ad
commit fe69841622
2 files changed
+18 -4

No files matched your search

+6 -1
View File
@@ -38,7 +38,12 @@ async function main() {
await setupTest()
}
await loadAndUpdateQuests()
try {
await loadAndUpdateQuests()
} catch (err) {
logger.error('Failed to load quests', err)
return
}
expiryRemovalScheduler()
const file = await fs.readFile('./swagger.yaml', 'utf8')