Fix incorrect format for an integer by using the unparseable string.

pull/3184/head
Thomas Stromberg 2018-09-28 16:17:44 -07:00
parent af61bf790c
commit ea62af5a37
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ func (*ExecRunner) Copy(f assets.CopyableFile) error {
}
perms, err := strconv.Atoi(f.GetPermissions())
if err != nil {
return errors.Wrapf(err, "error converting permissions %s to integer", perms)
return errors.Wrapf(err, "error converting permissions %s to integer", f.GetPermissions())
}
if err := os.Chmod(targetPath, os.FileMode(perms)); err != nil {
return errors.Wrapf(err, "error changing file permissions for %s", targetPath)