Skip to content
Snippets Groups Projects
Commit 1e441eda authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Don't log an error if after a failure to remove a file, the file doesn't exist

parent 904b3a58
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -336,7 +336,7 @@ function remove_file(fname)
{
if (file_remove(fname))
log(LOG_INFO, "Deleted file: " + fname);
else
else if(file_exists(fname))
log(LOG_ERROR, "Error " + errno + " (" + errno_str + ") deleting file: " + fname);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment