Fix error message not getting expanded properly. (#430)

This commit is contained in:
Joe Selman 2017-09-14 09:30:06 -07:00 committed by GitHub
parent 3027822917
commit 68303edb42

View File

@ -259,7 +259,7 @@ func setProjectIamPolicy(policy *cloudresourcemanager.Policy, config *Config, pi
&cloudresourcemanager.SetIamPolicyRequest{Policy: policy}).Do()
if err != nil {
return errwrap.Wrap(fmt.Errorf("Error applying IAM policy for project %q. Policy is %#v, error is {{err}}", pid, policy), err)
return errwrap.Wrapf(fmt.Sprintf("Error applying IAM policy for project %q. Policy is %#v, error is {{err}}", pid, policy), err)
}
return nil
}