Fix "Implement a class for automatic temporary file handling"
TemporaryFile::commit throws instead of returning a bool.
This commit is contained in:
@@ -115,7 +115,12 @@ class FFmpegPlugin extends Plugin
|
||||
}
|
||||
|
||||
if ($success) {
|
||||
$success = $tempfile->commit($outpath);
|
||||
try {
|
||||
$tempfile->commit($outpath);
|
||||
} catch (TemporaryFileException $e) {
|
||||
$this->log(LOG_ERR, 'Unable to save the GIF image');
|
||||
$success = false;
|
||||
}
|
||||
}
|
||||
|
||||
@unlink($palette);
|
||||
|
Reference in New Issue
Block a user