-
Notifications
You must be signed in to change notification settings - Fork 461
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
Fix fail message #248
Fix fail message #248
Conversation
the fail message was including a fact that was not used in the whole case statement and caused some confusion.
I'm gonna be the annoying community person that's too involved in this but knowing what kind of spec hero you are, could you add a test for that failure message just to prevent someone from bringing the issue back? |
The reason I added |
@hunner ahh okay. kinda makes sense. will close PR then, |
I don't agree with the rationale. @electrical's error message was much better than with the Since this module won't ever make any sense on any platform but Debian it should have code in it that bails it out: if $::osfamily != Debian {
fail('This module only works on Debian or derivatives like Ubuntu')
} Now the user knows exactly why it's blowing up and the other error messages in |
++ to that! :) Want to update the PR @electrical ? |
Also, |
@hunner will do. Will have a PR after the weekend. |
@electrical Pwetty please? 😄 |
Will try to spend some time on it tomorrow :-) |
Working on it today. sorry for the delay |
@hunner Take it away! |
the fail message was including a fact that was not used in the whole case statement and caused some confusion.