From cc39cde3197ea033b5e45032de4a43fa3a93925e Mon Sep 17 00:00:00 2001 From: Gyu-Ho Lee Date: Thu, 7 Jan 2016 12:52:44 -0800 Subject: [PATCH] tools/benchmark/cmd: print error out to stderr --- tools/benchmark/cmd/storage-put.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)