Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1624)

Unified Diff: deploytool/cmd/luci_deploy/kubernetes.go

Issue 2963503003: [errors] Greatly simplify common/errors package. (Closed)
Patch Set: fix nits Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « deploytool/cmd/luci_deploy/deploy_container_engine.go ('k') | deploytool/cmd/luci_deploy/layout.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: deploytool/cmd/luci_deploy/kubernetes.go
diff --git a/deploytool/cmd/luci_deploy/kubernetes.go b/deploytool/cmd/luci_deploy/kubernetes.go
index d09e8a7dbfa6ff8c243e3f4c5a93b871af07edce..1ed1bb2d34af2b67b367cfb48b0d55fe90df4396 100644
--- a/deploytool/cmd/luci_deploy/kubernetes.go
+++ b/deploytool/cmd/luci_deploy/kubernetes.go
@@ -439,7 +439,7 @@ func (t *kubeTool) getResource(c context.Context, resource string, obj interface
default:
if err := yaml.Unmarshal(x.stdout.Bytes(), obj); err != nil {
- return errors.Annotate(err).Reason("failed to unmarshal YAML %(type)T").D("type", obj).Err()
+ return errors.Annotate(err, "failed to unmarshal YAML %T", obj).Err()
}
return nil
}
« no previous file with comments | « deploytool/cmd/luci_deploy/deploy_container_engine.go ('k') | deploytool/cmd/luci_deploy/layout.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698