Skip to content
Snippets Groups Projects
Unverified Commit 5fcf8b2f 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 4a7d1dde
Branches
Tags
9 merge requests!1445Issue #2920039: Views' User Name exposed group filter validation,!1298Issue #3240993: Let layout builder render inline block translations,!774Issue #3174569: Example node template file name is incorrect,!497Issue #2463967: Use .user.ini file for PHP settings,!433Resolve #3163663 "Too many open files",!233Resolve #2693787 "Taxonomy term name",!133Resolve #2666286 "Clean up menuui",!112Resolve #3187004 "Drupaldatetime serialization issue",!53Resolve #3181870: Correct typo "the the" in "core/classList" deprecation message.
......@@ -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.
Please register or to comment