diff --git a/web/app.js b/web/app.js index 2824358d1..347ab5261 100644 --- a/web/app.js +++ b/web/app.js @@ -1057,6 +1057,12 @@ const PDFViewerApplication = { this._unblockDocumentLoadEvent(); this._otherError(message, moreInfo); + + this.eventBus.dispatch("documenterror", { + source: this, + message, + reason: moreInfo?.message ?? null, + }); }, /**