mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
tools/benchmark/cmd: print error out to stderr
This commit is contained in:
parent
4d921ab0e4
commit
cc39cde319
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user