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

Unified Diff: state/apiserver/common/instanceidgetter_test.go

Issue 70770043: all: use errgo instead of fmt.Errorf
Patch Set: all: use errgo instead of fmt.Errorf Created 11 years, 1 month 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') | state/apiserver/common/life_test.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: state/apiserver/common/instanceidgetter_test.go
=== modified file 'state/apiserver/common/instanceidgetter_test.go'
--- state/apiserver/common/instanceidgetter_test.go 2014-01-20 17:47:59 +0000
+++ state/apiserver/common/instanceidgetter_test.go 2014-03-03 12:02:05 +0000
@@ -6,6 +6,7 @@
import (
"fmt"
+ "github.com/juju/errgo/errors"
gc "launchpad.net/gocheck"
"launchpad.net/juju-core/instance"
@@ -71,7 +72,7 @@
func (*instanceIdGetterSuite) TestInstanceIdError(c *gc.C) {
getCanRead := func() (common.AuthFunc, error) {
- return nil, fmt.Errorf("pow")
+ return nil, errors.Newf("pow")
}
ig := common.NewInstanceIdGetter(&fakeState{}, getCanRead)
_, err := ig.InstanceId(params.Entities{[]params.Entity{{"x0"}}})
« no previous file with comments | « state/apiserver/common/errors_test.go ('k') | state/apiserver/common/life_test.go » ('j') | no next file with comments »

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