summaryrefslogtreecommitdiff
path: root/lib/highline/question_asker.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/highline/question_asker.rb')
-rw-r--r--lib/highline/question_asker.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/highline/question_asker.rb b/lib/highline/question_asker.rb
index cb8dfa8..03b3ff7 100644
--- a/lib/highline/question_asker.rb
+++ b/lib/highline/question_asker.rb
@@ -114,8 +114,8 @@ class HighLine
private
## Delegate to Highline
- def explain_error(error)
- @highline.say(question.final_responses[error]) if error
+ def explain_error(explanation_key) # eg: :not_valid, :not_in_range
+ @highline.say(question.final_response(explanation_key))
@highline.say(question.ask_on_error_msg)
end