function throw_error(){ ERRROR_MESSAGE=$1 return 1 } __command__ || throw_error "__error_message__" もしくは __command__ || { doSomething; return 1; }