aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2015-08-11 08:05:07 -0600
committerBen Johnson <benbjohnson@yahoo.com>2015-08-11 08:05:07 -0600
commit0f053fabc06119583d61937a0a06ef0ba0f1b301 (patch)
tree17877578947a2f530032d8b3eed98de007ef62c2
parentMerge pull request #403 from tv42/readme-bazil (diff)
parentFix invalid fmt.Fprintln/Errorf calls (diff)
downloaddedo-0f053fabc06119583d61937a0a06ef0ba0f1b301.tar.gz
dedo-0f053fabc06119583d61937a0a06ef0ba0f1b301.tar.xz
Merge pull request #405 from artyom/bolt-command-prints-fix
Fix invalid fmt.Fprintln/Errorf calls
-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.