Skip to content

Commit

Permalink
feat: add helper text for Docker usage when pact file not found
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Feb 15, 2023
1 parent e7e3160 commit 2aab2d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pact_broker/client/cli/pact_commands.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def validate_pact_path_list(paths)
elsif path.start_with?("-")
raise Thor::Error.new("ERROR: pact-broker publish was called with invalid arguments #{[path]}")
else
raise Thor::Error.new("Specified pact file '#{path}' does not exist. This sometimes indicates one of the arguments has been specified with the wrong name and has been incorrectly identified as a file path.")
raise Thor::Error.new("Specified pact file '#{path}' does not exist. This sometimes indicates one of the arguments has been specified with the wrong name and has been incorrectly identified as a file path. If you are using Docker, check that you have mounted the pact file or directory into the container correctly using `-v`, and have specified the location of the pact file or directory in the *Docker container*, not the *host*.")
end
end
end
Expand Down

0 comments on commit 2aab2d5

Please sign in to comment.