improve error handling while serving

This commit is contained in:
Jacky Zhao
2023-07-23 11:49:26 -07:00
parent 36c479231d
commit cc8903ca87
8 changed files with 56 additions and 28 deletions

View File

@ -143,7 +143,7 @@ export async function emitContent(
}
} catch (err) {
trace(`Failed to emit from plugin \`${emitter.name}\``, err as Error)
process.exit(1)
throw err
}
}
@ -173,5 +173,5 @@ export async function emitContent(
}
}
log.success(`Emitted ${emittedFiles} files to \`${output}\` in ${perf.timeSince()}`)
log.end(`Emitted ${emittedFiles} files to \`${output}\` in ${perf.timeSince()}`)
}