diff --git a/src/lib/viewers/text/PlainTextViewer.js b/src/lib/viewers/text/PlainTextViewer.js index d7b0c59c7..34ee6f0d0 100644 --- a/src/lib/viewers/text/PlainTextViewer.js +++ b/src/lib/viewers/text/PlainTextViewer.js @@ -207,7 +207,8 @@ class PlainTextViewer extends TextBaseViewer { } else { this.initHighlightJs(fetchedText); } - }); + }) + .catch(this.handleAssetError); } /**