fix: update instance launch failure error msg

This commit is contained in:
Ben Allfree
2023-11-09 14:20:18 +00:00
parent e20a9fa3a1
commit 521091a080

View File

@@ -257,10 +257,10 @@ export const instanceService = mkSingleton(
} catch (e) {
warn(`Error spawning: ${e}`)
userInstanceLogger.error(
`Could not launch PocketBase ${instance.version}. It may be time to upgrade.`,
`Could not launch PocketBase ${instance.version}. Please review your instnace logs at https://app.pockethost.io/app/instances/${instance.id} and join us in the Discord support channel https://discord.gg/nVTxCMEcGT.`,
)
throw new Error(
`Could not launch PocketBase ${instance.version}. It may be time to upgrade.`,
`Could not launch PocketBase ${instance.version}. Please review your instnace logs at https://app.pockethost.io/app/instances/${instance.id} and join us in the Discord support channel https://discord.gg/nVTxCMEcGT.`,
)
}
})()