forked from daren.hsu/line_push
update
This commit is contained in:
+6
-1
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user