From c76376e327fa98b2122443650d310320bb5620e4 Mon Sep 17 00:00:00 2001 From: paul Date: Wed, 24 Jan 2007 17:37:43 +0000 Subject: [PATCH] print out error message when copy/link operation fails so i can debug whats going wrong with dougs bug --- campcaster/src/modules/storageServer/var/StoredFile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/campcaster/src/modules/storageServer/var/StoredFile.php b/campcaster/src/modules/storageServer/var/StoredFile.php index 06a6a13f9..874011734 100644 --- a/campcaster/src/modules/storageServer/var/StoredFile.php +++ b/campcaster/src/modules/storageServer/var/StoredFile.php @@ -444,6 +444,7 @@ class StoredFile { } $res = $storedFile->addFile($p_values['filepath'], $p_copyMedia); if (PEAR::isError($res)) { + echo "StoredFile::Insert: ERROR adding file: '".$res->getMessage()."'\n"; $CC_DBC->query("ROLLBACK"); return $res; } @@ -618,7 +619,6 @@ class StoredFile { $this->exists = TRUE; return TRUE; } else { - //@unlink($this->fname); // maybe useless $this->exists = FALSE; return PEAR::raiseError( "StoredFile::addFile: file save failed".