diff --git a/web/app.js b/web/app.js index 8261040c0de87..720016c082343 100644 --- a/web/app.js +++ b/web/app.js @@ -817,7 +817,7 @@ const PDFViewerApplication = { return loadingErrorMessage.then(msg => { this.error(msg, { message }); - throw new Error(msg); + throw exception; }); } );