Skip to content

Commit

Permalink
chore: fix wrapping of error
Browse files Browse the repository at this point in the history
  • Loading branch information
kakha urigashvili committed Aug 5, 2020
1 parent 0f7fe06 commit 87130fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/commands/smapi/smapi-commander.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const makeSmapiCommander = () => {
inputCmdObj,
modelIntrospector
).then(res => metricClient.sendData().then(() => res))
.catch(err => metricClient.sendData(err).then(() => err));
.catch(err => metricClient.sendData(err).then(() => Promise.reject(err)));
});
});

Expand Down

0 comments on commit 87130fe

Please sign in to comment.