From f2582abbd133c9025eee65efd85f72c7172a724e Mon Sep 17 00:00:00 2001 From: Sunny Gleason Date: Tue, 15 Oct 2019 11:45:04 -0400 Subject: [PATCH] feat: better error messages by using util.inspect --- api/friendlyGet.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/friendlyGet.js b/api/friendlyGet.js index 5b8ed1cd..add34ec6 100644 --- a/api/friendlyGet.js +++ b/api/friendlyGet.js @@ -1,3 +1,4 @@ +import util from 'util'; import _ from 'lodash'; import allSettled from 'promise.allsettled'; @@ -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;