From 50c68f9cb2ba3af60f6e6198878479ce4c93ec66 Mon Sep 17 00:00:00 2001 From: Adam Petro Date: Tue, 18 Jan 2022 11:03:43 -0500 Subject: [PATCH] Modify configuration definition error message --- lib/project_types/script/messages/messages.rb | 4 ++-- lib/project_types/script/ui/error_handler.rb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/project_types/script/messages/messages.rb b/lib/project_types/script/messages/messages.rb index 499e6f2c90..f3399bb18b 100644 --- a/lib/project_types/script/messages/messages.rb +++ b/lib/project_types/script/messages/messages.rb @@ -59,8 +59,8 @@ module Messages app_not_connected_cause: "Script is not connected to an app.", app_not_connected_help: "Run shopify connect or enter fields for api-key and api-secret.", - configuration_error_cause: "There was a problem with the configuration defined in %{filename}. %{message}", - configuration_error_help: "Fix the error and try again.", + configuration_definition_error_cause: "In the %{filename} file, there was a problem with the configuration. %{message}", + configuration_definition_error_help: "Fix the error and try again.", configuration_syntax_error_cause: "The %{filename} is not formatted properly.", configuration_syntax_error_help: "Fix the errors and try again.", diff --git a/lib/project_types/script/ui/error_handler.rb b/lib/project_types/script/ui/error_handler.rb index e7eb528aca..a88f34431e 100644 --- a/lib/project_types/script/ui/error_handler.rb +++ b/lib/project_types/script/ui/error_handler.rb @@ -137,11 +137,11 @@ def self.error_messages(e) when Layers::Infrastructure::Errors::ScriptConfigurationDefinitionError { cause_of_error: ShopifyCLI::Context.message( - "script.error.configuration_error_cause", + "script.error.configuration_definition_error_cause", message: e.message, filename: e.filename, ), - help_suggestion: ShopifyCLI::Context.message("script.error.configuration_error_help"), + help_suggestion: ShopifyCLI::Context.message("script.error.configuration_definition_error_help"), } when Layers::Infrastructure::Errors::ScriptConfigSyntaxError {