Skip to content

Commit

Permalink
Update lib/core/errors.js
Browse files Browse the repository at this point in the history
Co-authored-by: Carlos Fuentes <[email protected]>
  • Loading branch information
ronag and metcoder95 authored Dec 6, 2023
1 parent 7095355 commit 769d9e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core/errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class InvalidReturnValueError extends UndiciError {
class AbortError extends UndiciError {
constructor (message) {
super(message)
Error.captureStackTrace(this, RequestAbortedError)
Error.captureStackTrace(this, AbortError)
this.name = 'AbortError'
this.message = message || 'The operation was aborted'
}
Expand Down

0 comments on commit 769d9e6

Please sign in to comment.