edit gives ugly error messages #800

Closed
banister opened this Issue Jan 9, 2013 · 1 comment

Comments

Projects
None yet
2 participants
Owner

banister commented Jan 9, 2013

[5] pry(main)> edit Symbol
NoMethodError: undefined method `empty?' for nil:NilClass
from /Users/johnmair/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/shellwords.rb:75:in `shellescape'
[5] pry(main)> edit Pry #=> works
[6] pry(main)> edit String
NoMethodError: undefined method `<=' for nil:NilClass
from /Users/johnmair/ruby/pry/lib/pry/editor.rb:88:in `start_line_syntax_for_editor'
Owner

ConradIrwin commented Jan 9, 2013

This didn't use to be the case, we should probably add some tests for nice error messages when we fix it again.

@banister banister closed this Jan 12, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment