This repository has been archived by the owner on Jun 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
runat-1128988: Report rejected promises
Chance some places where promises were being dropped on the floor. Signed-off-by: Joe Walker <[email protected]>
- Loading branch information
Showing
3 changed files
with
20 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -184,7 +184,7 @@ var commandLanguage = exports.commandLanguage = { | |
var isNew = (this.assignment !== newAssignment); | ||
|
||
this.assignment = newAssignment; | ||
this.terminal.updateCompletion(); | ||
this.terminal.updateCompletion().then(null, util.errorHandler); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
joewalker
Author
Owner
|
||
|
||
if (isNew) { | ||
this.updateHints(); | ||
|
@@ -286,7 +286,7 @@ var commandLanguage = exports.commandLanguage = { | |
} | ||
|
||
this.terminal.history.add(input); | ||
this.terminal.unsetChoice(); | ||
this.terminal.unsetChoice().then(null, util.errorHandler); | ||
|
||
return this.requisition.exec().then(function() { | ||
this.textChanged(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 comment
on commit f525d59
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r+
Nit: You can just use catch() for this pattern