Skip to content

Commit

Permalink
Fix: Handle text representation error (#72)
Browse files Browse the repository at this point in the history
- An error when fetching text representation in the plain text viewer should trigger a viewer error
  • Loading branch information
tonyjin authored Apr 18, 2017
1 parent fec384c commit 81fc4e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/viewers/text/PlainTextViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,8 @@ class PlainTextViewer extends TextBaseViewer {
} else {
this.initHighlightJs(fetchedText);
}
});
})
.catch(this.handleAssetError);
}

/**
Expand Down

0 comments on commit 81fc4e4

Please sign in to comment.