mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-15 09:27:27 +00:00
Handle errors when cargo watch
fails
This commit is contained in:
parent
97a14d51ed
commit
503920532d
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue