From cf870b4499b65908a45c15d6094bb4564caf21a2 Mon Sep 17 00:00:00 2001 From: Jonathan Ernst Date: Thu, 27 Jan 2005 17:30:24 +0000 Subject: [PATCH] * better error message when rename() fails --- include/screenshot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/screenshot.php b/include/screenshot.php index a3a886e..79b4926 100644 --- a/include/screenshot.php +++ b/include/screenshot.php @@ -74,7 +74,7 @@ class Screenshot { if(!rename($hFile['tmp_name'], "data/".$this->sDirectory."/originals/".$this->iScreenshotId)) { // whoops, moving failed, do something - addmsg("Unable to move screenshot", "red"); + addmsg("Unable to move screenshot from ".$hFile['tmp_name']." to data/".$this->sDirectory."/originals/".$this->iScreenshotId, "red"); $sQuery = "DELETE FROM ".$this->sTable." WHERE ".$this->sTableId." = '".$this->iScreenshotId."'"; query_appdb($sQuery); return false;