Skip to content
Snippets Groups Projects
Unverified Commit 28ae4e01 authored by Alex Pott's avatar Alex Pott
Browse files

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

Issue #3097583 by kiamlaluno: CreateNew::validateArguments()'s exception reports to be for the wrong operation

(cherry picked from commit c314cda0)
parent f149d793
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment