diff options
| author | Tim Zallmann <tzallmann@gitlab.com> | 2017-12-11 21:16:11 +0100 |
|---|---|---|
| committer | Tim Zallmann <tzallmann@gitlab.com> | 2017-12-19 12:26:02 +0100 |
| commit | 8e70e1f49a75af88892091326a36cdf06c7ab5bf (patch) | |
| tree | 40e1574ec4e2865ee3dee306d8d0582b6cb80e78 | |
| parent | b1cdbf07f1aecb6ff5714d2043bc58c665c832b2 (diff) | |
| download | gitlab-ce-8e70e1f49a75af88892091326a36cdf06c7ab5bf.tar.gz | |
Added Error Flash message back
| -rw-r--r-- | app/assets/javascripts/ide/components/repo_editor.vue | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/assets/javascripts/ide/components/repo_editor.vue b/app/assets/javascripts/ide/components/repo_editor.vue index a66abb608e0..221be4b9074 100644 --- a/app/assets/javascripts/ide/components/repo_editor.vue +++ b/app/assets/javascripts/ide/components/repo_editor.vue @@ -37,7 +37,8 @@ export default { .then(() => { this.editor.createInstance(this.$refs.editor); }) - .then(() => this.setupEditor()); + .then(() => this.setupEditor()) + .catch(() => flash('Error setting up monaco. Please try again.')); }, setupEditor() { if (!this.activeFile) return; |
