Handle errors when cargo watch fails

This commit is contained in:
oxalica 2019-11-16 02:49:44 +08:00
parent 97a14d51ed
commit 503920532d
No known key found for this signature in database
GPG key ID: CED392DE0C483D00

View file

@ -201,6 +201,11 @@ export async function startCargoWatch(
); );
return; return;
} }
} else if (stderr !== '') {
vscode.window.showErrorMessage(
`Couldn't run \`cargo watch\`: ${stderr}`
);
return;
} }
const provider = await registerCargoWatchProvider(context.subscriptions); const provider = await registerCargoWatchProvider(context.subscriptions);