The CleanupUploadStash script checks if there are any orphaned temp files in ''/local-temp'' directory. If the directory doesn't exist the script returns exit code 1(default from the fatalError method).
There are a few cases where this behaviour might be unexpected:
- Used backend implementation doesn't use this folder and/or any local folder
- Running Mediawiki in the cloud without persistent storage (cleaning up temp isn't needed)
If the temp folder doesn't exist, there is nothing to cleanup locally. This means the script finished successfully