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

Unified Diff: agent/format.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 | « agent/bootstrap.go ('k') | agent/tools/toolsdir.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: agent/format.go
=== modified file 'agent/format.go'
--- agent/format.go 2013-09-02 23:51:23 +0000
+++ agent/format.go 2014-03-03 12:02:05 +0000
@@ -10,6 +10,8 @@
"path"
"strings"
+ "github.com/juju/errgo/errors"
+
"launchpad.net/juju-core/utils"
)
@@ -71,7 +73,7 @@
case previousFormat:
return previousFormatter, nil
}
- return nil, fmt.Errorf("unknown agent config format")
+ return nil, errors.Newf("unknown agent config format")
}
func writeFormatFile(dirName string, format string) error {
« no previous file with comments | « agent/bootstrap.go ('k') | agent/tools/toolsdir.go » ('j') | no next file with comments »

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