diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2014-07-26 19:41:05 -0600 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-07-26 19:41:05 -0600 |
commit | bbf2da4c907f8f5234e65d141e4759dc7130fdd7 (patch) | |
tree | 7eb0f18436534cdc463f8c63691d2b1dc3221a81 /cmd/bolt | |
parent | Remove testify. (diff) | |
download | dedo-bbf2da4c907f8f5234e65d141e4759dc7130fdd7.tar.gz dedo-bbf2da4c907f8f5234e65d141e4759dc7130fdd7.tar.xz |
Fix go vet.
Diffstat (limited to 'cmd/bolt')
-rw-r--r-- | cmd/bolt/bench.go | 6 | ||||
-rw-r--r-- | cmd/bolt/export.go | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/cmd/bolt/bench.go b/cmd/bolt/bench.go index b275542..91af960 100644 --- a/cmd/bolt/bench.go +++ b/cmd/bolt/bench.go @@ -283,7 +283,7 @@ func benchStartProfiling(options *BenchOptions) { if options.CPUProfile != "" { cpuprofile, err = os.Create(options.CPUProfile) if err != nil { - fatal("bench: could not create cpu profile %q: %v", options.CPUProfile, err) + fatalf("bench: could not create cpu profile %q: %v", options.CPUProfile, err) } pprof.StartCPUProfile(cpuprofile) } @@ -292,7 +292,7 @@ func benchStartProfiling(options *BenchOptions) { if options.MemProfile != "" { memprofile, err = os.Create(options.MemProfile) if err != nil { - fatal("bench: could not create memory profile %q: %v", options.MemProfile, err) + fatalf("bench: could not create memory profile %q: %v", options.MemProfile, err) } runtime.MemProfileRate = 4096 } @@ -301,7 +301,7 @@ func benchStartProfiling(options *BenchOptions) { if options.BlockProfile != "" { blockprofile, err = os.Create(options.BlockProfile) if err != nil { - fatal("bench: could not create block profile %q: %v", options.BlockProfile, err) + fatalf("bench: could not create block profile %q: %v", options.BlockProfile, err) } runtime.SetBlockProfileRate(1) } diff --git a/cmd/bolt/export.go b/cmd/bolt/export.go index 2689f32..9a0b112 100644 --- a/cmd/bolt/export.go +++ b/cmd/bolt/export.go @@ -42,7 +42,7 @@ func Export(path string) { // Encode all buckets into JSON. output, err := json.Marshal(root) if err != nil { - return fmt.Errorf("encode: ", err) + return fmt.Errorf("encode: %s", err) } print(string(output)) return nil |