improve error handling while serving

This commit is contained in:
Jacky Zhao 2023-07-23 11:49:26 -07:00
parent fd7c33c537
commit ae2e3b463a
8 changed files with 56 additions and 28 deletions
quartz/processors

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()}`)
}