print out error message when copy/link operation fails so i can debug whats going wrong with dougs bug
This commit is contained in:
parent
dc88a2792e
commit
c76376e327
|
@ -444,6 +444,7 @@ class StoredFile {
|
||||||
}
|
}
|
||||||
$res = $storedFile->addFile($p_values['filepath'], $p_copyMedia);
|
$res = $storedFile->addFile($p_values['filepath'], $p_copyMedia);
|
||||||
if (PEAR::isError($res)) {
|
if (PEAR::isError($res)) {
|
||||||
|
echo "StoredFile::Insert: ERROR adding file: '".$res->getMessage()."'\n";
|
||||||
$CC_DBC->query("ROLLBACK");
|
$CC_DBC->query("ROLLBACK");
|
||||||
return $res;
|
return $res;
|
||||||
}
|
}
|
||||||
|
@ -618,7 +619,6 @@ class StoredFile {
|
||||||
$this->exists = TRUE;
|
$this->exists = TRUE;
|
||||||
return TRUE;
|
return TRUE;
|
||||||
} else {
|
} else {
|
||||||
//@unlink($this->fname); // maybe useless
|
|
||||||
$this->exists = FALSE;
|
$this->exists = FALSE;
|
||||||
return PEAR::raiseError(
|
return PEAR::raiseError(
|
||||||
"StoredFile::addFile: file save failed".
|
"StoredFile::addFile: file save failed".
|
||||||
|
|
Loading…
Reference in New Issue