Skip to content

Commit f83f33d

Browse files
committed
fix(promise): remove duplicate console.log
Closes angular#806
1 parent 34ad4a7 commit f83f33d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/common/promise.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ Zone.__load_patch('ZoneAwarePromise', (global: any, Zone: ZoneType, api: _ZonePr
2727
rejection instanceof Error ? rejection.message : rejection, '; Zone:',
2828
(<Zone>e.zone).name, '; Task:', e.task && (<Task>e.task).source, '; Value:', rejection,
2929
rejection instanceof Error ? rejection.stack : undefined);
30+
} else {
31+
console.error(e);
3032
}
31-
console.error(e);
3233
}
3334
};
3435

0 commit comments

Comments
 (0)