(parent = rootErrorHandler, func)
| 122 | } |
| 123 | |
| 124 | function buildErrorHandler (parent = rootErrorHandler, func) { |
| 125 | if (!func) { |
| 126 | return parent |
| 127 | } |
| 128 | |
| 129 | const errorHandler = Object.create(parent) |
| 130 | errorHandler.func = func |
| 131 | return errorHandler |
| 132 | } |
| 133 | |
| 134 | function setErrorHeaders (error, reply) { |
| 135 | const res = reply.raw |
no outgoing calls
no test coverage detected