Skip to content

Commit

Permalink
chore: update error message when build command fails
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickMenoti committed Sep 6, 2023
1 parent 0238d64 commit 81e42ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion messages/build/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package build
import "errors"

var (
ErrorBuilding = errors.New("Failed to build your project. Make sure you have initialized your project by running the init or link commands. For more information run 'azion build --debug' or contact Azion's support")
ErrorBuilding = errors.New("Failed to build your resource. Azion configuration not found. Make sure you are in the root directory of your local repository and have already initialized or linked your resource with the commands 'azion init' or 'azion link'")
ErrorVulcanExecute = errors.New("Error executing Vulcan: %s")
EdgeApplicationsOutputErr = errors.New("This output-ctrl option is not available. Read the readme files found in the repository https://github.com/aziontech/azioncli-template and try again")
ErrFailedToRunBuildCommand = errors.New("Failed to run the build command. Verify if the command is correct and check the output above for more details. Run the 'azion build' command again or contact Azion's support")
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/deploy/deploy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func TestDeployCmd(t *testing.T) {

err := cmd.Execute()

require.EqualError(t, err, "Failed to build your project. Make sure you have initialized your project by running the init or link commands. For more information run 'azion build --debug' or contact Azion's support")
require.EqualError(t, err, "Failed to build your resource. Azion configuration not found. Make sure you are in the root directory of your local repository and have already initialized or linked your resource with the commands 'azion init' or 'azion link'")
})

t.Run("failed to create application", func(t *testing.T) {
Expand Down

0 comments on commit 81e42ec

Please sign in to comment.