Skip to content

Commit 0e38c59

Browse files
fix(helpers): fix error format 🐛
1 parent b07bcbf commit 0e38c59

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/helpers/AppError.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class AppError extends Error {
2424
this.name = this.constructor.name;
2525

2626
// Share clean messages for api feedback
27-
this.details = [message];
27+
this.details = [{ message }];
2828

2929
// Ensures the AppError subclass is sliced out of the
3030
// stack trace dump for clarity

0 commit comments

Comments
 (0)