diff --git a/web/app.js b/web/app.js index 45cd34cecd991..669a3c6e3bf46 100644 --- a/web/app.js +++ b/web/app.js @@ -823,7 +823,7 @@ const PDFViewerApplication = { return loadingErrorMessage.then(msg => { this.error(msg, { message }); - throw new Error(msg); + throw exception; }); } );