Include stack trace on startup errors in create app

Updated the backend index.ts in create-app to log the error as an object, rather than a string.
This causes the error to include a stack trace, along with the error message,
as well as bringing it in line with the main app in the bakstage repo.

Signed-off-by: Alex Crome <afscrome@users.noreply.github.com>
This commit is contained in:
Alex Crome
2022-08-11 12:38:08 +01:00
parent 02d10e076f
commit e58262b025
@@ -104,6 +104,6 @@ async function main() {
module.hot?.accept();
main().catch(error => {
console.error(`Backend failed to start up, ${error}`);
console.error('Backend failed to start up', error);
process.exit(1);
});