Skip to content

Commit

Permalink
Use BaseError.fromJSON()
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Nov 13, 2022
1 parent b5c6a5b commit 88e53b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/run/process/task_error.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const throwOnTaskError = function ({ error: errorObject }) {
return
}

const error = BaseError.parse(errorObject)
const error = BaseError.fromJSON(errorObject)
const { ErrorClass, prefix } = ERROR_MAP[getName(error)]
throw new ErrorClass(prefix, { cause: error })
}
Expand Down

0 comments on commit 88e53b2

Please sign in to comment.