From 23ea9d879de8c5a17da6c6385076607582825e39 Mon Sep 17 00:00:00 2001 From: Yury Delendik Date: Fri, 21 Jun 2013 19:13:26 -0500 Subject: [PATCH] Show fallback bar on unhandled rejections --- src/util.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util.js b/src/util.js index 248be72e8..82994170e 100644 --- a/src/util.js +++ b/src/util.js @@ -748,8 +748,8 @@ var Promise = PDFJS.Promise = (function PromiseClosure() { var now = Date.now(); for (var i = 0; i < this.unhandledRejections.length; i++) { if (now - this.unhandledRejections[i].time > REJECTION_TIMEOUT) { - console.error('Unhandled rejection: ' + - this.unhandledRejections[i].promise._value); + warn('Unhandled rejection: ' + + this.unhandledRejections[i].promise._value); this.unhandledRejections.splice(i); i--; }