It would be really nice to be able to explicitly raise a specific type of error from a shell script, so that the script author can influence the failure strategy as a result of the script execution.
Even better, it would be really create to be able to create custom error types that can then branch rollback logic
It could be as simple as tying error types to specific shell script exit codes, and having a UI for creating error types where you can specify the exit code to associate with it