From 2aab2d529c4a0f0f2c0bf62d496cea594f750bd8 Mon Sep 17 00:00:00 2001 From: Beth Skurrie Date: Wed, 15 Feb 2023 13:30:54 +1100 Subject: [PATCH] feat: add helper text for Docker usage when pact file not found --- lib/pact_broker/client/cli/pact_commands.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pact_broker/client/cli/pact_commands.rb b/lib/pact_broker/client/cli/pact_commands.rb index 3c7620d..e41f3b4 100644 --- a/lib/pact_broker/client/cli/pact_commands.rb +++ b/lib/pact_broker/client/cli/pact_commands.rb @@ -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