{
do_stuff
doSomeMoreStuff
} || {
check_for_error_1 && handle_error_1
checkForError2 && handleError2
}
This will be useful in restoring the git stash, independent of either a failure or success.
This will probable require a finally thingie.
Or maybe consider wrapping the function up? Maybe?
{ do_stuff doSomeMoreStuff } || { check_for_error_1 && handle_error_1 checkForError2 && handleError2 }This will be useful in restoring the git stash, independent of either a failure or success.
This will probable require a
finallythingie.Or maybe consider wrapping the function up? Maybe?