From 503920532d8e3b76e17cf534164655d23c9c3c5d Mon Sep 17 00:00:00 2001 From: oxalica Date: Sat, 16 Nov 2019 02:49:44 +0800 Subject: Handle errors when `cargo watch` fails --- editors/code/src/commands/runnables.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'editors') 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( ); return; } + } else if (stderr !== '') { + vscode.window.showErrorMessage( + `Couldn't run \`cargo watch\`: ${stderr}` + ); + return; } const provider = await registerCargoWatchProvider(context.subscriptions); -- cgit v1.2.3