Commit dc939d51 authored by Karl Kornel's avatar Karl Kornel
Browse files

Some more drive search output

parent 89e6985f
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -725,12 +725,18 @@ EOF
	my $drive_search_exit_code = $? >> 8;
    dolog($search_output);
	close($results_handle);
	dolog("==========================================================\n");
	dolog("The drive search program returned exit code $drive_search_exit_code\n");

    # Make sure we have something in the buffer
    if (!defined($search_output) or !$search_output) {
        dolog(<<"EOF");
Problem!
The Google Drive search command exited, but there was no output.
This likely means that something weird went on with the program.
EOF
		email_failure('Drive search generated no output', 'run',
			      $RUNFOLDER, "$RealBin/email-recipients.txt",
			      $LOGPATH, \$LOG, $RealBin, $RealScript);
        return undef;
    }