OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |