Now inserts warning into the log file and returns no filename if a file could not be written due to permission or directory problem.
This commit is contained in:
parent
d4009e3de8
commit
76f7526762
1 changed files with 2 additions and 0 deletions
|
|
@ -432,6 +432,8 @@ sub save {
|
||||||
close($file);
|
close($file);
|
||||||
_createThumbnail($_[0],$_[2]);
|
_createThumbnail($_[0],$_[2]);
|
||||||
} else {
|
} else {
|
||||||
|
WebGUI::ErrorHandler::warn("Couldn't open file ".$_[0]->getPath." for writing.");
|
||||||
|
$_[0]->{_filename} = "";
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
return $_[0]->getFilename;
|
return $_[0]->getFilename;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue