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

Unified Diff: vpython/venv/system_windows.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/system_posix.go ('k') | vpython/venv/util.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vpython/venv/system_windows.go
diff --git a/vpython/venv/system_windows.go b/vpython/venv/system_windows.go
index 81e17673a86b40b3000e966551af1a6627b38c5c..aa128c7d62f87c04c62c535e4695f457ab42c859 100644
--- a/vpython/venv/system_windows.go
+++ b/vpython/venv/system_windows.go
@@ -26,11 +26,11 @@ func venvBinDir(root string) string {
func checkProcessRunning(pid int) error {
proc, err := os.FindProcess(pid)
if err != nil {
- return errors.Annotate(err).Reason("failed to find process").Err()
+ return errors.Annotate(err, "failed to find process").Err()
}
if err := proc.Signal(os.Signal(syscall.Signal(0))); err != nil {
- return errors.Annotate(err).Reason("failed to signal process").Err()
+ return errors.Annotate(err, "failed to signal process").Err()
}
return nil
}
« no previous file with comments | « vpython/venv/system_posix.go ('k') | vpython/venv/util.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698