Skip to content

Commit

Permalink
fix(helpers): fix error format 🐛
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreBrisorgueil committed Mar 20, 2019
1 parent b07bcbf commit 0e38c59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/helpers/AppError.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class AppError extends Error {
this.name = this.constructor.name;

// Share clean messages for api feedback
this.details = [message];
this.details = [{ message }];

// Ensures the AppError subclass is sliced out of the
// stack trace dump for clarity
Expand Down

0 comments on commit 0e38c59

Please sign in to comment.