Commit 6b42af3f authored by Guillaume Rousse's avatar Guillaume Rousse

fix error message handling when file deletion fails

parent 5d6ca492
...@@ -179,9 +179,9 @@ if (is_array($metadataSProviders)){ ...@@ -179,9 +179,9 @@ if (is_array($metadataSProviders)){
// clean up if needed // clean up if needed
if ($metadataURL) { if ($metadataURL) {
$result = unlink($metadataFile); $result = @unlink($metadataFile);
if (!$result) { if (!$result) {
$error = error_get_last(); $error = error_get_last();
exit("Exiting: could not delete temporary file $metadataFile: $error\n"); exit("Exiting: could not delete temporary file $metadataFile: " . $error['message']);
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment