Commit 9b6676cd authored by linj's avatar linj Committed by vipwzw

create tx failed , output to stderr

parent d817fba0
......@@ -131,7 +131,7 @@ func fixAmount(cmd *cobra.Command, args []string) {
paraName, _ := cmd.Flags().GetString("paraName")
tx, err := pty.CreateUnfreezeCreateTx(paraName, create)
if err != nil {
fmt.Printf("Create Tx frailed: %s", err)
fmt.Fprintf(os.Stderr,"Create Tx frailed: %s", err)
return
}
outputTx(tx)
......@@ -173,7 +173,7 @@ func left(cmd *cobra.Command, args []string) {
paraName, _ := cmd.Flags().GetString("paraName")
tx, err := pty.CreateUnfreezeCreateTx(paraName, create)
if err != nil {
fmt.Printf("Create Tx frailed: %s", err)
fmt.Fprintf(os.Stderr,"Create Tx frailed: %s", err)
return
}
outputTx(tx)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment