Skip to content
This repository has been archived by the owner on Jul 22, 2020. It is now read-only.

Commit

Permalink
feat: better error messages by using util.inspect
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnygleason committed Oct 15, 2019
1 parent d35a016 commit f2582ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/friendlyGet.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import util from 'util';
import _ from 'lodash';
import allSettled from 'promise.allsettled';

Expand Down Expand Up @@ -57,7 +58,7 @@ export class FriendlyGet {

if (_.size(__errors__) > 0) {
compactResult.__errors__ = __errors__;
console.warn('FRIENDLY_GET_HAD_PROBLEMS', JSON.stringify(__errors__));
console.warn('FRIENDLY_GET_HAD_PROBLEMS', util.inspect(__errors__));
}

return compactResult;
Expand Down

0 comments on commit f2582ab

Please sign in to comment.