Commit 7ee4ca88 authored by Karl Kornel's avatar Karl Kornel
Browse files

Catch other non-zero exit codes from the drive program.

parent 2b5f94a9
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -438,6 +438,15 @@ EOF
		return unless defined($drive_exit_code);
	}

    # If we got any other non-zero exit code, we have a problem.
    if ($drive_exit_code != 0) {
        dolog("That's bad 8-(\n");
        workflow_complete($RUNFOLDER);
        email_failure('Un-good exit code from the drive program', 'run',
                      $RUNFOLDER, "$RealBin/email-recipients.txt",
                      $LOGPATH, \$LOG, $RealBin, $RealScript);
    }

	# Find our samplesheet
	dolog("Drive running complete!  Checking for samplesheet.\n");