aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src/commands
diff options
context:
space:
mode:
authoroxalica <[email protected]>2019-11-15 18:49:44 +0000
committeroxalica <[email protected]>2019-11-15 18:49:44 +0000
commit503920532d8e3b76e17cf534164655d23c9c3c5d (patch)
tree24f264764c4a755329571494ef2a9abac6191803 /editors/code/src/commands
parent97a14d51edf810179472813dce6b4d47f8ff106b (diff)
Handle errors when `cargo watch` fails
Diffstat (limited to 'editors/code/src/commands')
-rw-r--r--editors/code/src/commands/runnables.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/editors/code/src/commands/runnables.ts b/editors/code/src/commands/runnables.ts
index 26372c1e8..39e542fb6 100644
--- a/editors/code/src/commands/runnables.ts
+++ b/editors/code/src/commands/runnables.ts
@@ -201,6 +201,11 @@ export async function startCargoWatch(
201 ); 201 );
202 return; 202 return;
203 } 203 }
204 } else if (stderr !== '') {
205 vscode.window.showErrorMessage(
206 `Couldn't run \`cargo watch\`: ${stderr}`
207 );
208 return;
204 } 209 }
205 210
206 const provider = await registerCargoWatchProvider(context.subscriptions); 211 const provider = await registerCargoWatchProvider(context.subscriptions);