@trenskow/app 0.5.6 → 0.5.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -327,13 +327,7 @@ export default class Application extends EventEmitter {
327
327
 
328
328
  } catch (error) {
329
329
 
330
- if (typeof error.toJSON !== 'function') {
331
- console.error(error.stack);
332
- context.result = new ApiError.InternalError({ underlying: error });
333
- } else {
334
- context.result = error;
335
- }
336
-
330
+ context.result = error;
337
331
  context.response.statusCode = error.statusCode ?? 500;
338
332
 
339
333
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trenskow/app",
3
- "version": "0.5.6",
3
+ "version": "0.5.7",
4
4
  "description": "A small HTTP router.",
5
5
  "type": "module",
6
6
  "main": "index.js",