Skip to content
This repository has been archived by the owner on Mar 4, 2022. It is now read-only.

bro throws away valuable exceptions #51

Open
huyz opened this issue Aug 14, 2014 · 1 comment
Open

bro throws away valuable exceptions #51

huyz opened this issue Aug 14, 2014 · 1 comment

Comments

@huyz
Copy link

huyz commented Aug 14, 2014

bro wasn't working for me and I had no idea why. The only output I got was:

The bro command isn't in our database.

    * Typing bro add will let you add bro to our database!

    * There's nothing to lose by typing bro add, it will just launch an editor with instructions.

    * Need help? Visit http://bropages.org/help

It turns out that there was a valuable Netrc::Error exception being thrown away:

Permission bits for '/Users/huyz/.netrc' should be 0600, but are 644

The exception handling at

bro/lib/bro.rb

Lines 251 to 253 in b2fbbc1

rescue
say <<-QQQ.unindent
The #{cmd_display.colored.yellow} command isn't in our database.
is a bit too coarse. Maybe it should handle RestClient::ResourceNotFound exceptions separately.

@natebrunette
Copy link

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants