engine, pgp: Fixup incorrect error usage

Small fixups found by the next commit.
This commit is contained in:
James Shubin
2019-03-12 16:12:17 -04:00
parent 2bf43eae24
commit 54c81d6bb2
3 changed files with 8 additions and 8 deletions

View File

@@ -136,7 +136,7 @@ func (obj *ExecRes) Validate() error {
return errwrap.Wrapf(err, "error looking up current user")
}
if currentUser.Uid != "0" {
return errwrap.Errorf("running as root is required if you want to use exec with a different user/group")
return fmt.Errorf("running as root is required if you want to use exec with a different user/group")
}
}