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

Unified Diff: vpython/venv/venv_test.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 | « vpython/venv/venv_resources_test.go ('k') | vpython/wheel/wheel.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vpython/venv/venv_test.go
diff --git a/vpython/venv/venv_test.go b/vpython/venv/venv_test.go
index 8d2fe2a8b365dc25acdbf633694ae066bef78eed..947b53e99b59c3a4444858f9f89447c907903276 100644
--- a/vpython/venv/venv_test.go
+++ b/vpython/venv/venv_test.go
@@ -267,10 +267,10 @@ func TestVirtualEnv(t *testing.T) {
func loadJSON(path string, dst interface{}) error {
content, err := ioutil.ReadFile(path)
if err != nil {
- return errors.Annotate(err).Reason("failed to open file").Err()
+ return errors.Annotate(err, "failed to open file").Err()
}
if err := json.Unmarshal(content, dst); err != nil {
- return errors.Annotate(err).Reason("failed to unmarshal JSON").Err()
+ return errors.Annotate(err, "failed to unmarshal JSON").Err()
}
return nil
}
« no previous file with comments | « vpython/venv/venv_resources_test.go ('k') | vpython/wheel/wheel.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698