Parcourir la source

tools/benchmark/cmd: print error out to stderr

Gyu-Ho Lee il y a 10 ans
Parent
commit
cc39cde319
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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 {
 			id := s.TxnBegin()
 			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)
 			}
 			s.TxnEnd(id)