@@ -128,13 +128,13 @@ func runCmd(ctx *cli.Context) error {
128128 if ctx .GlobalString (CodeFileFlag .Name ) == "-" {
129129 //Try reading from stdin
130130 if hexcode , err = ioutil .ReadAll (os .Stdin ); err != nil {
131- fmt .Fprintf (ctx .App .ErrWriter ,"Could not load code from stdin: %v\n " , err )
131+ fmt .Fprintf (ctx .App .ErrWriter , "Could not load code from stdin: %v\n " , err )
132132 os .Exit (1 )
133133 }
134134 } else {
135135 // Codefile with hex assembly
136136 if hexcode , err = ioutil .ReadFile (ctx .GlobalString (CodeFileFlag .Name )); err != nil {
137- fmt .Fprintf (ctx .App .ErrWriter ,"Could not load code from file: %v\n " , err )
137+ fmt .Fprintf (ctx .App .ErrWriter , "Could not load code from file: %v\n " , err )
138138 os .Exit (1 )
139139 }
140140 }
@@ -172,11 +172,11 @@ func runCmd(ctx *cli.Context) error {
172172 if cpuProfilePath := ctx .GlobalString (CPUProfileFlag .Name ); cpuProfilePath != "" {
173173 f , err := os .Create (cpuProfilePath )
174174 if err != nil {
175- fmt .Fprintf (ctx .App .ErrWriter ,"could not create CPU profile: %v\n " , err )
175+ fmt .Fprintf (ctx .App .ErrWriter , "could not create CPU profile: %v\n " , err )
176176 os .Exit (1 )
177177 }
178178 if err := pprof .StartCPUProfile (f ); err != nil {
179- fmt .Fprintf (ctx .App .ErrWriter ,"could not start CPU profile: %v\n " , err )
179+ fmt .Fprintf (ctx .App .ErrWriter , "could not start CPU profile: %v\n " , err )
180180 os .Exit (1 )
181181 }
182182 defer pprof .StopCPUProfile ()
@@ -206,11 +206,11 @@ func runCmd(ctx *cli.Context) error {
206206 if memProfilePath := ctx .GlobalString (MemProfileFlag .Name ); memProfilePath != "" {
207207 f , err := os .Create (memProfilePath )
208208 if err != nil {
209- fmt .Fprintln (ctx .App .ErrWriter ,"could not create memory profile: %v\n " , err )
209+ fmt .Fprintf (ctx .App .ErrWriter , "could not create memory profile: %v\n " , err )
210210 os .Exit (1 )
211211 }
212212 if err := pprof .WriteHeapProfile (f ); err != nil {
213- fmt .Fprintln (ctx .App .ErrWriter ,"could not create memory profile: %v\n " , err )
213+ fmt .Fprintf (ctx .App .ErrWriter , "could not create memory profile: %v\n " , err )
214214 os .Exit (1 )
215215 }
216216 f .Close ()
0 commit comments