Skip to content

Commit d39235f

Browse files
authored
Merge pull request #264 from JunoLab/sp/webglerrorhandling
error handling for the webgl backend
2 parents 2a1ae93 + a1616ae commit d39235f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/console/view.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,12 @@ class TerminalElement extends HTMLElement {
2626
this.model.terminal.open(this)
2727

2828
if (this.model.isWebgl) {
29-
this.model.terminal.loadAddon(new WebglAddon())
29+
try {
30+
this.model.terminal.loadAddon(new WebglAddon())
31+
} catch (err) {
32+
console.error('Tried to start terminal with WebGL backend, but encountered the following error:')
33+
console.error(err)
34+
}
3035
}
3136

3237
this.subs.add(atom.config.observe('editor.fontSize', (val) => {

0 commit comments

Comments
 (0)