Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1175)

Unified Diff: worker/deployer/deployer.go

Issue 13474046: various: Use params.IsCode*(err) helpers (Closed)
Patch Set: various: Use params.IsCode*(err) helpers Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « state/apiserver/common/errors_test.go ('k') | worker/machiner/machiner.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: worker/deployer/deployer.go
=== modified file 'worker/deployer/deployer.go'
--- worker/deployer/deployer.go 2013-09-02 06:03:14 +0000
+++ worker/deployer/deployer.go 2013-09-13 10:38:02 +0000
@@ -9,7 +9,6 @@
"launchpad.net/loggo"
"launchpad.net/juju-core/agent"
- "launchpad.net/juju-core/errors"
"launchpad.net/juju-core/names"
apideployer "launchpad.net/juju-core/state/api/deployer"
"launchpad.net/juju-core/state/api/params"
@@ -63,7 +62,7 @@
}
func isNotFoundOrUnauthorized(err error) bool {
- return errors.IsNotFoundError(err) || params.ErrCode(err) == params.CodeUnauthorized
+ return params.IsCodeNotFound(err) || params.IsCodeUnauthorized(err)
}
func (d *Deployer) SetUp() (watcher.StringsWatcher, error) {
« no previous file with comments | « state/apiserver/common/errors_test.go ('k') | worker/machiner/machiner.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b