print out error message when copy/link operation fails so i can debug whats going wrong with dougs bug

This commit is contained in:
paul 2007-01-24 17:37:43 +00:00
parent dc88a2792e
commit c76376e327
1 changed files with 1 additions and 1 deletions

View File

@ -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".