Skip to content

Commit

Permalink
overlay: improve overlay error message
Browse files Browse the repository at this point in the history
Signed-off-by: Giuseppe Scrivano <[email protected]>
  • Loading branch information
giuseppe committed Mar 8, 2021
1 parent 1f9fb70 commit dde567a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/overlay/overlay.go
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ func parseOptions(options []string) (*overlayOptions, error) {
if val != "" {
_, err := os.Stat(val)
if err != nil {
return nil, fmt.Errorf("overlay: can't stat program %s: %v", val, err)
return nil, errors.Wrapf(err, "overlay: can't stat program %q", val)
}
}
o.mountProgram = val
Expand Down

0 comments on commit dde567a

Please sign in to comment.