mirror of
https://github.com/antonmedv/fx.git
synced 2024-09-19 05:57:09 +03:00
Print debug error message
This commit is contained in:
parent
36af65042c
commit
77b2632aeb
@ -70,6 +70,8 @@ func Reduce(object interface{}, args []string, theme Theme) {
|
||||
status, ok := err.(*exec.ExitError)
|
||||
if ok {
|
||||
exitCode = status.ExitCode()
|
||||
} else {
|
||||
fmt.Println(err.Error())
|
||||
}
|
||||
fmt.Print(string(output))
|
||||
os.Exit(exitCode)
|
||||
|
Loading…
Reference in New Issue
Block a user