-
Notifications
You must be signed in to change notification settings - Fork 2
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
Enhancement: Allow custom "Known error" #4
Comments
Nice idea ! i like it ! handlers would need to be defined before "post" i guess, so anywhere between the "include" of the lib and the "post" i'll think about it... |
if you feel comfortable with bash, don't hesitate to PR ;) |
here is my poc :
|
result :
|
Did you had a chance to test it ? |
Sorry not much time this week... |
Hello I just did a pre-stable dep-install check and got only errors:
Dep file is: https://github.com/Domochip/jMQTT/blob/73cd97088abc02cad65dd6662798c50c42348d0e/resources/install_apt.sh |
Please ignore, file was in WINDOWS vs Linux file format expected by bash... |
Hello,
It would be nice to have the possibility to handle our own known errors as you do for apt, npm, etc.
For exemple, with a function like:
handle <error to grep> <found message> <command/function>
with in parameter the text error to grep in the log, the message to display when found and the command to fixit
it could be declared between each step (or each try ?) to be specific to a stp (or try) or before pre to be generic.
What do you think about it?
Bad
The text was updated successfully, but these errors were encountered: