(parent = rootErrorHandler, func)
| 141 | } |
| 142 | |
| 143 | function buildErrorHandler (parent = rootErrorHandler, func) { |
| 144 | if (!func) { |
| 145 | return parent |
| 146 | } |
| 147 | |
| 148 | const errorHandler = Object.create(parent) |
| 149 | errorHandler.func = func |
| 150 | return errorHandler |
| 151 | } |
| 152 | |
| 153 | function setErrorHeaders (error, reply) { |
| 154 | const res = reply.raw |
no outgoing calls
no test coverage detected