make friendly error message (#9605)

pull/9614/head
Megan Marsh 6 years ago committed by GitHub
parent 36da3374f3
commit ea4aa67f78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -55,7 +55,11 @@ func (p *PostProcessor) PostProcess(ctx context.Context, ui packer.Ui, artifact
break
default:
err := fmt.Errorf(
"Unknown artifact type: %s\nCan only import from Docker builder and Artifice post-processor artifacts.",
"Unknown artifact type: %s\nCan only import from Docker builder "+
"and Artifice post-processor artifacts. If you are getting this "+
"error after having run the docker builder, it may be because you "+
"set commit: true in your Docker builder, so the image is "+
"already imported. ",
artifact.BuilderId())
return nil, false, false, err
}

Loading…
Cancel
Save