Skip to content
Snippets Groups Projects

Issue #2707689: NodeForm::actions() checks for delete access on new entities

4 files
+ 113
26
Compare changes
  • Side-by-side
  • Inline
Files
4
  • 23edd01f
    Issue #2583041 by mondrake, fietserwin, claudiu.cristea, alexpott, catch: GD... · 23edd01f
    Alex Pott authored
    Issue #2583041 by mondrake, fietserwin, claudiu.cristea, alexpott, catch: GD toolkit & operations should catch \Throwable to fail gracefully in case of errors
@@ -127,8 +127,14 @@ public function apply($operation, array $arguments = []) {
$this->logger->error("The selected image handling toolkit '@toolkit' can not process operation '@operation'.", ['@toolkit' => $this->getPluginId(), '@operation' => $operation]);
return FALSE;
}
catch (\InvalidArgumentException $e) {
$this->logger->warning($e->getMessage(), []);
catch (\Throwable $t) {
$this->logger->warning("The image toolkit '@toolkit' failed processing '@operation' for image '@image'. Reported error: @class - @message", [
'@toolkit' => $this->getPluginId(),
'@operation' => $operation,
'@image' => $this->getSource(),
'@class' => get_class($t),
'@message' => $t->getMessage(),
]);
return FALSE;
}
}
Loading