Fixing a bug when throwing an exception

This commit is contained in:
Romain Biard 2017-01-11 10:35:29 -03:00
commit 8ac67679ab

View file

@ -107,7 +107,7 @@ class ExtractMultipleFramesFilter implements VideoFilterInterface
break; break;
} }
catch (RuntimeException $e) { catch (RuntimeException $e) {
throw new RuntimeException('An error occured while extracting the frames: ' . $e->getCode() . ' The message: '$e->getMessage()); throw new RuntimeException('An error occured while extracting the frames: ' . $e->getMessage() . '. The code: ' . $e->getCode());
} }
return $commands; return $commands;