From 15289108e5531cc576f87e396df52f890aa192f8 Mon Sep 17 00:00:00 2001 From: "JiaLi.Passion" Date: Fri, 9 Jun 2017 22:29:14 +0900 Subject: [PATCH] fix(promise): fix #806, remove duplicate consolelog --- lib/common/promise.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/common/promise.ts b/lib/common/promise.ts index ebf7d84c2..bad45acea 100644 --- a/lib/common/promise.ts +++ b/lib/common/promise.ts @@ -27,8 +27,9 @@ Zone.__load_patch('ZoneAwarePromise', (global: any, Zone: ZoneType, api: _ZonePr rejection instanceof Error ? rejection.message : rejection, '; Zone:', (e.zone).name, '; Task:', e.task && (e.task).source, '; Value:', rejection, rejection instanceof Error ? rejection.stack : undefined); + } else { + console.error(e); } - console.error(e); } };