1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

Merge pull request #1883 from r-obert/syntax-highlight-fix-2

fix syntax highlighting of change_prompt.rb
This commit is contained in:
Kyrylo Silin 2018-11-14 15:10:13 +08:00 committed by GitHub
commit c02c132a83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,10 +35,8 @@ class Pry::Command::ChangePrompt < Pry::ClassCommand
if Pry::Prompt.all.key?(prompt)
_pry_.prompt = Pry::Prompt.all[prompt][:value]
else
raise(Pry::CommandError, <<MSG)
'#{prompt}' isn't a known prompt. Run `change-prompt --list` to see
the list of known prompts.
MSG
raise Pry::CommandError, "'#{prompt}' isn't a known prompt. " \
"Run `change-prompt --list` to see the list of known prompts."
end
end