diff --git a/tools/benchmark/cmd/storage-put.go b/tools/benchmark/cmd/storage-put.go index e05b76c1c..e4e41e75a 100644 --- a/tools/benchmark/cmd/storage-put.go +++ b/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)