diff --git a/client/cs_files.cpp b/client/cs_files.cpp index da53db6600..75ac88b331 100644 --- a/client/cs_files.cpp +++ b/client/cs_files.cpp @@ -507,16 +507,16 @@ void CLIENT_STATE::check_file_existence() { path, fip->nbytes, size ); } - // If an output file disappears before it's uploaded, - // flag the job as an error. - // - if (fip->status == FILE_NOT_PRESENT && fip->uploadable() && !fip->uploaded) { - RESULT* rp = file_info_to_result(fip); - if (rp) { - gstate.report_result_error( - *rp, "output file missing or invalid" - ); - } + } + // If an output file disappears before it's uploaded, + // flag the job as an error. + // + if (fip->status == FILE_NOT_PRESENT && fip->uploadable() && !fip->uploaded) { + RESULT* rp = file_info_to_result(fip); + if (rp) { + gstate.report_result_error( + *rp, "output file missing or invalid" + ); } } }