aboutsummaryrefslogtreecommitdiff
path: root/cmd/bolt
diff options
context:
space:
mode:
authorArtyom Pervukhin <artyom@evasive.ru>2015-08-11 11:34:45 +0300
committerArtyom Pervukhin <artyom@evasive.ru>2015-08-11 11:35:43 +0300
commit8547e9ef2faf081800e37dbc2830b15d3547f1fb (patch)
tree17877578947a2f530032d8b3eed98de007ef62c2 /cmd/bolt
parentMerge pull request #403 from tv42/readme-bazil (diff)
downloaddedo-8547e9ef2faf081800e37dbc2830b15d3547f1fb.tar.gz
dedo-8547e9ef2faf081800e37dbc2830b15d3547f1fb.tar.xz
Fix invalid fmt.Fprintln/Errorf calls
`go vet` discovered two calls of Fprintln with trailing newline and one Errorf call without proper format string.
Diffstat (limited to 'cmd/bolt')
-rw-r--r--cmd/bolt/main.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/bolt/main.go b/cmd/bolt/main.go
index a1f2ae8..c41ebe4 100644
--- a/cmd/bolt/main.go
+++ b/cmd/bolt/main.go
@@ -344,7 +344,7 @@ func (cmd *DumpCommand) Run(args ...string) error {
for i, pageID := range pageIDs {
// Print a separator.
if i > 0 {
- fmt.Fprintln(cmd.Stdout, "===============================================\n")
+ fmt.Fprintln(cmd.Stdout, "===============================================")
}
// Print page to stdout.
@@ -465,7 +465,7 @@ func (cmd *PageCommand) Run(args ...string) error {
for i, pageID := range pageIDs {
// Print a separator.
if i > 0 {
- fmt.Fprintln(cmd.Stdout, "===============================================\n")
+ fmt.Fprintln(cmd.Stdout, "===============================================")
}
// Retrieve page info and page size.
@@ -917,7 +917,7 @@ func (cmd *BenchCommand) Run(args ...string) error {
// Write to the database.
var results BenchResults
if err := cmd.runWrites(db, options, &results); err != nil {
- return fmt.Errorf("write: ", err)
+ return fmt.Errorf("write: %v", err)
}
// Read from the database.