-
Notifications
You must be signed in to change notification settings - Fork 30
Raise specific NoSuchFileError for missing files #46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Raise specific NoSuchFileError for missing files #46
Conversation
@jrafanie please review |
I'm thinking if we decide to create a new Exception class it should derive from Errno::ENOENT, so callers can still catch that Exception. |
lib/linux_admin/common.rb
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggest trimming up the whitespace on lines 27 and 31
lib/linux_admin/exceptions.rb
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ETOOMANYMESSAGES...
It doesn't look like you care about the exception other than it's message. So, just pass in the message.
Strip params to avoid clear text passwords
…le_or_directory_errors Raise specific NoSuchFileError for missing files
Strip params to avoid clear text passwords