cs50 / help50-deprecated

This is help50, a command-line tool that helps students understand error messages.
https://cs50.harvard.edu/
GNU General Public License v3.0
62 stars 64 forks source link

doesn't seem to be handling non-existent commands #251

Closed dmalan closed 7 years ago

dmalan commented 7 years ago

doesn't seem to be handling non-existent commands (e.g., help50 foo where foo is not a command)?

$ help50 foo
Traceback (most recent call last):
  File "/home/travis/virtualenv/python2.7.9/bin/help50", line 126, in <module>
    main()
  File "/home/travis/virtualenv/python2.7.9/bin/help50", line 43, in main
    proc = ptyprocess.PtyProcess.spawn(sys.argv[1:])
  File "/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/ptyprocess/ptyprocess.py", line 208, in spawn
    'executable: %s.' % command)
ptyprocess.ptyprocess.FileNotFoundError: The command was not found or was not executable: foo.

CC @kzidane

dmalan commented 7 years ago

@crossroads1112 expected behavior:

screen shot 2017-06-27 at 5 29 46 pm
cmlsharp commented 7 years ago

Addressed in #254