Loading cloud.install +1 −1 Original line number Diff line number Diff line Loading @@ -74,7 +74,7 @@ function cloud_update_8103() { } catch (\Exception $e) { // @TODO: Add error handling. \Drupal::messenger()->addError("An error occurred: {$e->toString()}"); \Drupal::messenger()->addError("An error occurred: {$e->getMessage()}"); } } Loading cloud.module +1 −1 Original line number Diff line number Diff line Loading @@ -107,7 +107,7 @@ function cloud_uninstall_service_provider($cloud_config) { } } catch (\Exception $e) { \Drupal::messenger()->addMessage($e->getMessage(), 'error'); \Drupal::messenger()->addError($e->getMessage()); } // Rebuild caches. Loading modules/cloud_service_providers/aws_cloud/aws_cloud.module +7 −7 Original line number Diff line number Diff line Loading @@ -1561,7 +1561,7 @@ function aws_cloud_form_cloud_server_template_revision_delete_confirm_submit(arr } catch (\Exception $e) { // @TODO: Add error handling. \Drupal::messenger()->addError("An error occurred: {$e->toString()}"); \Drupal::messenger()->addError("An error occurred: {$e->getMessage()}"); } } Loading Loading @@ -1735,7 +1735,7 @@ function aws_cloud_get_launch_template_data(CloudServerTemplate $server_template } catch (\Exception $e) { // @TODO: Add error handling. \Drupal::messenger()->addError("An error occurred: {$e->toString()}"); \Drupal::messenger()->addError("An error occurred: {$e->getMessage()}"); } return $template_data; Loading Loading @@ -2213,7 +2213,7 @@ function aws_cloud_form_cloud_config_aws_cloud_add_form_submit(array $form, Form batch_set($batch); } catch (\Exception $e) { \Drupal::messenger()->addMessage($e->getMessage(), 'error'); \Drupal::messenger()->addError($e->getMessage()); } $form_state->setRedirect('entity.cloud_config.collection', []); Loading Loading @@ -2515,7 +2515,7 @@ function aws_cloud_form_cloud_config_aws_cloud_form_common_alter(array &$form, F } catch (\Exception $e) { // @TODO: Add error handling. \Drupal::messenger()->addError("An error occurred: {$e->toString()}"); \Drupal::messenger()->addError("An error occurred: {$e->getMessage()}"); } } Loading Loading @@ -3032,7 +3032,7 @@ function aws_cloud_get_long_running_instances($criteria) { } catch (\Exception $e) { // @TODO: Add error handling. \Drupal::messenger()->addError("An error occurred: {$e->toString()}"); \Drupal::messenger()->addError("An error occurred: {$e->getMessage()}"); } return $instances; } Loading Loading @@ -3128,7 +3128,7 @@ function aws_cloud_get_stale_snapshots($cloud_context = '') { } } catch (\Exception $e) { \Drupal::messenger()->addError("An error occurred: {$e->toString()}"); \Drupal::messenger()->addError("An error occurred: {$e->getMessage()}"); } return $stale_snapshots; } Loading Loading @@ -3177,7 +3177,7 @@ function aws_cloud_get_unused_snapshots($cloud_context = '') { } } catch (\Exception $e) { \Drupal::messenger()->addError("An error occurred: {$e->toString()}"); \Drupal::messenger()->addError("An error occurred: {$e->getMessage()}"); } return $unused_snapshots; } Loading modules/cloud_service_providers/aws_cloud/src/Form/Ec2/InstanceRebootMultipleForm.php +1 −1 Original line number Diff line number Diff line Loading @@ -81,7 +81,7 @@ class InstanceRebootMultipleForm extends AwsCloudProcessMultipleForm { } catch (\Exception $e) { // @TODO: Add error handling. $this->messenger->addError("An error occurred: {$e->toString()}"); $this->messenger->addError("An error occurred: {$e->getMessage()}"); } } Loading modules/cloud_service_providers/aws_cloud/src/Form/Ec2/InstanceStartForm.php +1 −1 Original line number Diff line number Diff line Loading @@ -57,7 +57,7 @@ class InstanceStartForm extends AwsDeleteForm { } catch (\Exception $e) { // @TODO: Add error handling. $this->messenger->addError("An error occurred: {$e->toString()}"); $this->messenger->addError("An error occurred: {$e->getMessage()}"); } } Loading Loading
cloud.install +1 −1 Original line number Diff line number Diff line Loading @@ -74,7 +74,7 @@ function cloud_update_8103() { } catch (\Exception $e) { // @TODO: Add error handling. \Drupal::messenger()->addError("An error occurred: {$e->toString()}"); \Drupal::messenger()->addError("An error occurred: {$e->getMessage()}"); } } Loading
cloud.module +1 −1 Original line number Diff line number Diff line Loading @@ -107,7 +107,7 @@ function cloud_uninstall_service_provider($cloud_config) { } } catch (\Exception $e) { \Drupal::messenger()->addMessage($e->getMessage(), 'error'); \Drupal::messenger()->addError($e->getMessage()); } // Rebuild caches. Loading
modules/cloud_service_providers/aws_cloud/aws_cloud.module +7 −7 Original line number Diff line number Diff line Loading @@ -1561,7 +1561,7 @@ function aws_cloud_form_cloud_server_template_revision_delete_confirm_submit(arr } catch (\Exception $e) { // @TODO: Add error handling. \Drupal::messenger()->addError("An error occurred: {$e->toString()}"); \Drupal::messenger()->addError("An error occurred: {$e->getMessage()}"); } } Loading Loading @@ -1735,7 +1735,7 @@ function aws_cloud_get_launch_template_data(CloudServerTemplate $server_template } catch (\Exception $e) { // @TODO: Add error handling. \Drupal::messenger()->addError("An error occurred: {$e->toString()}"); \Drupal::messenger()->addError("An error occurred: {$e->getMessage()}"); } return $template_data; Loading Loading @@ -2213,7 +2213,7 @@ function aws_cloud_form_cloud_config_aws_cloud_add_form_submit(array $form, Form batch_set($batch); } catch (\Exception $e) { \Drupal::messenger()->addMessage($e->getMessage(), 'error'); \Drupal::messenger()->addError($e->getMessage()); } $form_state->setRedirect('entity.cloud_config.collection', []); Loading Loading @@ -2515,7 +2515,7 @@ function aws_cloud_form_cloud_config_aws_cloud_form_common_alter(array &$form, F } catch (\Exception $e) { // @TODO: Add error handling. \Drupal::messenger()->addError("An error occurred: {$e->toString()}"); \Drupal::messenger()->addError("An error occurred: {$e->getMessage()}"); } } Loading Loading @@ -3032,7 +3032,7 @@ function aws_cloud_get_long_running_instances($criteria) { } catch (\Exception $e) { // @TODO: Add error handling. \Drupal::messenger()->addError("An error occurred: {$e->toString()}"); \Drupal::messenger()->addError("An error occurred: {$e->getMessage()}"); } return $instances; } Loading Loading @@ -3128,7 +3128,7 @@ function aws_cloud_get_stale_snapshots($cloud_context = '') { } } catch (\Exception $e) { \Drupal::messenger()->addError("An error occurred: {$e->toString()}"); \Drupal::messenger()->addError("An error occurred: {$e->getMessage()}"); } return $stale_snapshots; } Loading Loading @@ -3177,7 +3177,7 @@ function aws_cloud_get_unused_snapshots($cloud_context = '') { } } catch (\Exception $e) { \Drupal::messenger()->addError("An error occurred: {$e->toString()}"); \Drupal::messenger()->addError("An error occurred: {$e->getMessage()}"); } return $unused_snapshots; } Loading
modules/cloud_service_providers/aws_cloud/src/Form/Ec2/InstanceRebootMultipleForm.php +1 −1 Original line number Diff line number Diff line Loading @@ -81,7 +81,7 @@ class InstanceRebootMultipleForm extends AwsCloudProcessMultipleForm { } catch (\Exception $e) { // @TODO: Add error handling. $this->messenger->addError("An error occurred: {$e->toString()}"); $this->messenger->addError("An error occurred: {$e->getMessage()}"); } } Loading
modules/cloud_service_providers/aws_cloud/src/Form/Ec2/InstanceStartForm.php +1 −1 Original line number Diff line number Diff line Loading @@ -57,7 +57,7 @@ class InstanceStartForm extends AwsDeleteForm { } catch (\Exception $e) { // @TODO: Add error handling. $this->messenger->addError("An error occurred: {$e->toString()}"); $this->messenger->addError("An error occurred: {$e->getMessage()}"); } } Loading