Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit 7e16daa

Browse files
authored
Show error notification for rustup update failures (#121)
1 parent 4b22d05 commit 7e16daa

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/index.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,13 @@ class RustLanguageClient extends AutoLanguageClient {
342342
.then(() => this._checkToolchain())
343343
.then(() => checkRls())
344344
.then(() => this._restartLanguageServers(`Updated Rls toolchain`))
345-
.catch(logErr)
345+
.catch(e => {
346+
logErr(e)
347+
e && atom.notifications.addError(`\`rustup update ${toolchain}\` failed`, {
348+
detail: e,
349+
dismissable: true,
350+
})
351+
})
346352

347353
if (this.busySignalService) {
348354
this.busySignalService.reportBusyWhile(

0 commit comments

Comments
 (0)