소스 검색

tools/benchmark/cmd: print error out to stderr

Gyu-Ho Lee 10 년 전
부모
커밋
cc39cde319
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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)