successfully function

ProcessResult successfully(
  1. ProcessResult result
)

Expect a ProcessResult to be successful, aborting if it isn't.

Implementation

ProcessResult successfully(ProcessResult result) {
  if (result.exitCode != 0) {
    die(result.stderr);
  }
  return result;
}