Commit c314cda0 authored by alexpott's avatar alexpott

Issue #3097583 by kiamlaluno: CreateNew::validateArguments()'s exception...

Issue #3097583 by kiamlaluno: CreateNew::validateArguments()'s exception reports to be for the wrong operation
parent a2f5778f
......@@ -52,7 +52,7 @@ protected function arguments() {
protected function validateArguments(array $arguments) {
// Assure extension is supported.
if (!in_array($arguments['extension'], $this->getToolkit()->getSupportedExtensions())) {
throw new \InvalidArgumentException("Invalid extension ('{$arguments['extension']}') specified for the image 'convert' operation");
throw new \InvalidArgumentException("Invalid extension ('{$arguments['extension']}') specified for the image 'create_new' operation");
}
// Assure integers for width and height.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment