puppet: Fix error message when puppet conf copy fails

This commit adds the missing config file location to the error
message.
This commit is contained in:
Jonathan Gold
2018-12-03 07:54:41 -05:00
committed by James Shubin
parent 9db0fc4ee4
commit d2ce70a673

View File

@@ -119,7 +119,7 @@ func (obj *GAPI) Cli(c *cli.Context, fs engine.Fs) (*gapi.Deploy, error) {
// TODO: do we want to include this if we have mode == "dir" ?
if pc := c.String("puppet-conf"); c.IsSet("puppet-conf") {
if err := gapi.CopyFileToFs(fs, pc, PuppetConf); err != nil {
return nil, errwrap.Wrapf(err, "can't copy puppet conf from `%s`")
return nil, errwrap.Wrapf(err, "can't copy puppet conf from `%s` to '%s'", pc, PuppetConf)
}
}