Skip to content

Commit

Permalink
enhance: remove duplicated logged errors
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Nov 29, 2024
1 parent d5a9584 commit f0a3ada
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/rollup-job.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,8 @@ function runWatch({ input, output }: BuncheeRollupConfig): RollupWatcher {

function catchErrorHandler(error: any) {
if (!error) return
logger.error(error)
// filter out the rollup plugin error information such as loc/frame/code...
const err = new Error(error.message)
err.stack = error.stack
throw err
throw error
}

0 comments on commit f0a3ada

Please sign in to comment.