@@ -44,7 +44,7 @@ func ProcessCreateCmd() cli.Command {
4444 },
4545 Action : func (c * cli.Context ) {
4646 if err := createProcess (c ); err != nil {
47- logrus .Fatalf ( "Error running process create command: %v." , err )
47+ logrus .WithError ( err ). Fatal ( "Error running process create command" )
4848 }
4949 },
5050 }
@@ -75,7 +75,7 @@ func ProcessDeleteCmd() cli.Command {
7575 },
7676 Action : func (c * cli.Context ) {
7777 if err := deleteProcess (c ); err != nil {
78- logrus .Fatalf ( "Error running process delete command: %v." , err )
78+ logrus .WithError ( err ). Fatal ( "Error running process delete command" )
7979 }
8080 },
8181 }
@@ -105,7 +105,7 @@ func ProcessGetCmd() cli.Command {
105105 },
106106 Action : func (c * cli.Context ) {
107107 if err := getProcess (c ); err != nil {
108- logrus .Fatalf ( "Error running process get command: %v." , err )
108+ logrus .WithError ( err ). Fatal ( "Error running process get command" )
109109 }
110110 },
111111 }
@@ -131,7 +131,7 @@ func ProcessListCmd() cli.Command {
131131 ShortName : "ls" ,
132132 Action : func (c * cli.Context ) {
133133 if err := listProcess (c ); err != nil {
134- logrus .Fatalf ( "Error running engine stop command: %v." , err )
134+ logrus .WithError ( err ). Fatal ( "Error running engine stop command" )
135135 }
136136 },
137137 }
@@ -176,7 +176,7 @@ func ProcessReplaceCmd() cli.Command {
176176 },
177177 Action : func (c * cli.Context ) {
178178 if err := replaceProcess (c ); err != nil {
179- logrus .Fatalf ( "Error running engine replace command: %v." , err )
179+ logrus .WithError ( err ). Fatal ( "Error running engine replace command" )
180180 }
181181 },
182182 }
0 commit comments