This commit is contained in:
2022-07-18 02:50:52 +00:00
parent befd344ab0
commit 06181b34d6
8569 changed files with 818704 additions and 352705 deletions
+6 -1
View File
@@ -55,7 +55,7 @@ class PromptUI extends Base {
}, this.answers)
)
.toPromise(Promise)
.then(this.onCompletion.bind(this));
.then(this.onCompletion.bind(this), this.onError.bind(this));
}
/**
@@ -68,6 +68,11 @@ class PromptUI extends Base {
return this.answers;
}
onError(error) {
this.close();
return Promise.reject(error);
}
processQuestion(question) {
question = _.clone(question);
return defer(() => {