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 {