main: fix errors show

parent ef91ff59
...@@ -11,6 +11,7 @@ import ( ...@@ -11,6 +11,7 @@ import (
"ximperconf/system" "ximperconf/system"
"ximperconf/ui" "ximperconf/ui"
"github.com/fatih/color"
"github.com/urfave/cli/v3" "github.com/urfave/cli/v3"
) )
...@@ -45,6 +46,7 @@ func main() { ...@@ -45,6 +46,7 @@ func main() {
applyCommandSetting(rootCommand) applyCommandSetting(rootCommand)
if err := rootCommand.Run(context.Background(), os.Args); err != nil { if err := rootCommand.Run(context.Background(), os.Args); err != nil {
color.Red(err.Error())
os.Exit(1) os.Exit(1)
} }
} }
......
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