Browse Source

Merge pull request #4161 from gyuho/typo_in_benchmark

tools/benchmark/cmd: print error out to stderr
Gyu-Ho Lee 10 years ago
parent
commit
a7287b6374
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tools/benchmark/cmd/storage-put.go

+ 1 - 1
tools/benchmark/cmd/storage-put.go

@@ -74,7 +74,7 @@ func storagePutFunc(cmd *cobra.Command, args []string) {
 		if txn {
 		if txn {
 			id := s.TxnBegin()
 			id := s.TxnBegin()
 			if _, err := s.TxnPut(id, keys[i], vals[i], lease.NoLease); err != nil {
 			if _, err := s.TxnPut(id, keys[i], vals[i], lease.NoLease); err != nil {
-				fmt.Errorf("txn put error: %v", err)
+				fmt.Fprintln(os.Stderr, "txn put error:", err)
 				os.Exit(1)
 				os.Exit(1)
 			}
 			}
 			s.TxnEnd(id)
 			s.TxnEnd(id)