(error)
| 2084 | } |
| 2085 | } |
| 2086 | onError(error) { |
| 2087 | this.onFinally(); |
| 2088 | if (channels.error.hasSubscribers) { |
| 2089 | channels.error.publish({ request: this, error }); |
| 2090 | } |
| 2091 | if (this.aborted) { |
| 2092 | return; |
| 2093 | } |
| 2094 | this.aborted = true; |
| 2095 | return this[kHandler].onError(error); |
| 2096 | } |
| 2097 | onFinally() { |
| 2098 | if (this.errorHandler) { |
| 2099 | this.body.off("error", this.errorHandler); |
no test coverage detected