We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a02262 commit 27f57e4Copy full SHA for 27f57e4
js/botasaurus-server-js/src/api-config.ts
@@ -292,7 +292,7 @@ export function buildApp(
292
return payload;
293
});
294
// Add error handler for JsonHTTPResponseWithMessage
295
- app.setErrorHandler((error, _, reply) => {
+ app.setErrorHandler((error:any, _, reply) => {
296
if (error instanceof JsonHTTPResponseWithMessage) {
297
reply.code(error.status).headers(error.headers).send(error.body);
298
} else {
0 commit comments