taylorthurlow / panda-motd

a utility for generating a more useful MOTD
MIT License
134 stars 6 forks source link

Error on first run (ascii_text_art.rb:15:in ``': No such file or directory - (Errno::ENOENT)) #12

Closed ivarlovlie closed 6 years ago

ivarlovlie commented 6 years ago

Bug description

Get error on first run of panda-motd, not familiar with ruby, so i cant describe the bug better than this. output of cat /var/log/panda-motd.error.log:

/var/lib/gems/2.3.0/gems/panda-motd-0.0.7/lib/panda_motd/components/ascii_text_art.rb:15:in ``': No such file or directory -  (Errno::ENOENT)
        from /var/lib/gems/2.3.0/gems/panda-motd-0.0.7/lib/panda_motd/components/ascii_text_art.rb:15:in `process'
        from /var/lib/gems/2.3.0/gems/panda-motd-0.0.7/lib/panda_motd/motd.rb:9:in `each'
        from /var/lib/gems/2.3.0/gems/panda-motd-0.0.7/lib/panda_motd/motd.rb:9:in `initialize'
        from /var/lib/gems/2.3.0/gems/panda-motd-0.0.7/lib/panda_motd.rb:9:in `new'
        from /var/lib/gems/2.3.0/gems/panda-motd-0.0.7/lib/panda_motd.rb:9:in `new_motd'
        from /var/lib/gems/2.3.0/gems/panda-motd-0.0.7/bin/panda-motd:5:in `<top (required)>'
        from /usr/local/bin/panda-motd:23:in `load'
        from /usr/local/bin/panda-motd:23:in `<main>'

Reproduction steps

Steps to reproduce the behavior:

  1. Run panda-motd

Expected behavior

I expected panda-motd to print a successful result.

OS Information

Configuration File

https://gist.github.com/eevahr/ae2e87642f55c0a1704cc6a093aa1953

taylorthurlow commented 6 years ago

Hi. You're getting this error because in 0.0.7 a command setting was added to the ASCII art text config. Here's the setting you're missing.

The command it ran before 0.0.7 was hostname, so just use that if you prefer to go back to how it was pre-0.0.7.

ivarlovlie commented 6 years ago

That's it, ooh yeah. thanks.