Jacky Zhao
2023-12-19 4c83251f8ed5babad4be239f2f4c2d23233b5098
feat: -v flag should log exact error on parse failure
1 files modified
5 ■■■■ changed files
quartz/build.ts 5 ●●●● patch | view | raw | blame | history
quartz/build.ts
@@ -148,8 +148,11 @@
      await rimraf(argv.output)
      await emitContent(ctx, filteredContent)
      console.log(chalk.green(`Done rebuilding in ${perf.timeSince()}`))
    } catch {
    } catch (err) {
      console.log(chalk.yellow(`Rebuild failed. Waiting on a change to fix the error...`))
      if (argv.verbose) {
        console.log(chalk.red(err))
      }
    }
    release()