]> git.lizzy.rs Git - rust.git/blobdiff - editors/code/src/commands/runnables.ts
Handle errors when `cargo watch` fails
[rust.git] / editors / code / src / commands / runnables.ts
index 26372c1e8b0817b5e76af10a34d34edace5078be..39e542fb6cf05540e43c882f640ba5c5a8eea4e9 100644 (file)
@@ -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);