Merge pull request #8835 from Snuffleupagus/viewer-firefox-error-message

Ensure that `PDFViewerApplication.error` outputs proper messages in FIREFOX/MOZCENTRAL builds
This commit is contained in:
Tim van der Meij 2017-08-28 22:51:29 +02:00 committed by GitHub
commit d734b3d1d6

View File

@ -841,7 +841,9 @@ let PDFViewerApplication = {
errorMoreInfo.value = parts.join('\n');
});
} else {
console.error(message + '\n' + moreInfoText);
Promise.all(moreInfoText).then((parts) => {
console.error(message + '\n' + parts.join('\n'));
});
this.fallback();
}
},