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

merge-requests/2419/head
Alex Pott 2019-11-29 12:56:05 +00:00
parent a2f5778f56
commit c314cda04d
No known key found for this signature in database
GPG Key ID: 31905460D4A69276
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ class CreateNew extends GDImageToolkitOperationBase {
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.