Merge pull request #749 in YUNIONIO/onecloud from ~ZHOUYOUSONG/onecloud:bugfix/yousong-climc-stderr to release/2.0.0

* commit '56370457ddc4360d7db19311736b55e5f0478ca0':
  climc: 在stderr输出错误信息
This commit is contained in:
邱剑
2018-12-12 23:08:18 +08:00
+1 -1
View File
@@ -84,7 +84,7 @@ func getSubcommandsParser() (*structarg.ArgumentParser, error) {
}
func showErrorAndExit(e error) {
fmt.Printf("Error: %s\n", e)
fmt.Fprintf(os.Stderr, "Error: %s\n", e)
os.Exit(1)
}