]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Clearer warning message on non-existing file
authorMikael Nordfeldth <mmn@hethane.se>
Wed, 15 Apr 2015 22:22:09 +0000 (00:22 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Wed, 15 Apr 2015 22:22:09 +0000 (00:22 +0200)
scripts/upgrade.php

index 692eaac17a40b8d083b4b1ff8e4be6ecd6932780..126ef290360b27a7d8b0abfcf3963816555b18ef 100644 (file)
@@ -520,7 +520,7 @@ function setFilehashOnLocalFiles()
                 $file->filehash = hash_file(File::FILEHASH_ALG, $file->getPath());
                 $file->update($orig);
             } catch (FileNotFoundException $e) {
-                echo "\n    WARNING: file ID {$file->id} does not exist on path '{$e->path}'. Clean up the file table?";
+                echo "\n    WARNING: file ID {$file->id} does not exist on path '{$e->path}'. If there is no file system error, run: php scripts/clean_file_table.php";
             }
         }
     }