Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Commit

Permalink
Modify configuration definition error message
Browse files Browse the repository at this point in the history
  • Loading branch information
adampetro committed Jan 18, 2022
1 parent e8237a2 commit ae8987e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/project_types/script/messages/messages.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down
4 changes: 2 additions & 2 deletions lib/project_types/script/ui/error_handler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit ae8987e

Please sign in to comment.