Skip to content

Commit

Permalink
fix: reject with error
Browse files Browse the repository at this point in the history
  • Loading branch information
Elin Angelow committed Apr 11, 2024
1 parent 6b954fa commit d5afde2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/methods/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,8 @@ const Methods = ({
mr.params = r;
} catch (e) {
mr.params = undefined;
mr.error = e;
this.log('error', 'Methods', e);
mr.error = e?.error || e;
this.log('error', 'Methods', mr.error);
}
if (!data.id) {
return;
Expand Down

0 comments on commit d5afde2

Please sign in to comment.