mirror of
https://github.com/alrayyes/wiki.git
synced 2025-05-02 23:08:14 +00:00
improve error handling while serving
This commit is contained in:
parent
fd7c33c537
commit
ae2e3b463a
8 changed files with 56 additions and 28 deletions
quartz/processors
|
@ -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()}`)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue