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

Unified Diff: deploytool/cmd/luci_deploy/path.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/param.go ('k') | deploytool/cmd/luci_deploy/staging.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: deploytool/cmd/luci_deploy/path.go
diff --git a/deploytool/cmd/luci_deploy/path.go b/deploytool/cmd/luci_deploy/path.go
index d7324977031394e6fdaedc78b3dd6ebcf9819a63..ef427e6b4861e5f3d5f832f182e2c0a630387be9 100644
--- a/deploytool/cmd/luci_deploy/path.go
+++ b/deploytool/cmd/luci_deploy/path.go
@@ -58,7 +58,7 @@ func withTempDir(f func(string) error) error {
// Create a temporary directory.
tdir, err := ioutil.TempDir("", "luci_deploytool")
if err != nil {
- return errors.Annotate(err).Reason("failed to create tempdir").Err()
+ return errors.Annotate(err, "failed to create tempdir").Err()
}
defer os.RemoveAll(tdir)
« no previous file with comments | « deploytool/cmd/luci_deploy/param.go ('k') | deploytool/cmd/luci_deploy/staging.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698