(err, request, reply)
| 131 | } |
| 132 | |
| 133 | function preHandlerCallback (err, request, reply) { |
| 134 | if (reply.sent) return |
| 135 | |
| 136 | const context = request[kRouteContext] |
| 137 | |
| 138 | if (!channels.hasSubscribers || context[kFourOhFourContext] === null) { |
| 139 | preHandlerCallbackInner(err, request, reply) |
| 140 | } else { |
| 141 | const store = { |
| 142 | request, |
| 143 | reply, |
| 144 | async: false, |
| 145 | route: { |
| 146 | url: context.config.url, |
| 147 | method: context.config.method |
| 148 | } |
| 149 | } |
| 150 | reply[kDiagnosticsStore] = store |
| 151 | channels.start.runStores(store, preHandlerCallbackInner, undefined, err, request, reply, store) |
| 152 | } |
| 153 | } |
| 154 | |
| 155 | function preHandlerCallbackInner (err, request, reply, store) { |
| 156 | const context = request[kRouteContext] |
no test coverage detected