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

Side by Side Diff: vpython/application/subcommand_delete.go

Issue 2963503003: [errors] Greatly simplify common/errors package. (Closed)
Patch Set: fix nits Created 3 years, 5 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 unified diff | Download patch
« no previous file with comments | « vpython/application/probe.go ('k') | vpython/application/subcommand_install.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 The LUCI Authors. All rights reserved. 1 // Copyright 2017 The LUCI Authors. All rights reserved.
2 // Use of this source code is governed under the Apache License, Version 2.0 2 // Use of this source code is governed under the Apache License, Version 2.0
3 // that can be found in the LICENSE file. 3 // that can be found in the LICENSE file.
4 4
5 package application 5 package application
6 6
7 import ( 7 import (
8 "github.com/maruel/subcommands" 8 "github.com/maruel/subcommands"
9 "golang.org/x/net/context" 9 "golang.org/x/net/context"
10 10
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 } 63 }
64 64
65 logging.Infof(c, "Deleted VirtualEnv: %s", e.Name) 65 logging.Infof(c, "Deleted VirtualEnv: %s", e.Name)
66 return nil 66 return nil
67 }) 67 })
68 if err != nil { 68 if err != nil {
69 return err 69 return err
70 } 70 }
71 71
72 if failures > 0 { 72 if failures > 0 {
73 » » » return errors.Reason("failed to delete %(count)d environ ment(s)"). 73 » » » return errors.Reason("failed to delete %d environment(s) ", failures).Err()
74 » » » » D("count", failures).
75 » » » » Err()
76 } 74 }
77 return nil 75 return nil
78 }) 76 })
79 } 77 }
OLDNEW
« no previous file with comments | « vpython/application/probe.go ('k') | vpython/application/subcommand_install.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698