I've enhanced the function error_end() to be able to pass argument (exit code, error message).
It bypass the exit code from process (that failed) to shell.
So the problem (not stopping at error) solved.
And I replaced most of || echo "error message to || error_end $? "error message".
closes #26
I've enhanced the function error_end() to be able to pass argument (exit code, error message).
It bypass the exit code from process (that failed) to shell.
So the problem (not stopping at error) solved.
And I replaced most of
|| echo "error message
to|| error_end $? "error message"
.