File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ func (uploadBatch *uploadBatch) initAnalysis() error {
195
195
}
196
196
defer response .Body .Close ()
197
197
if response .StatusCode != http .StatusNoContent {
198
- return fmt .Errorf ("Failed to initialize scan due to status code %d" , response .StatusCode )
198
+ return fmt .Errorf ("failed to initialize scan due to status code %d" , response .StatusCode )
199
199
} else {
200
200
fmt .Println ("Successfully initialized scan" )
201
201
}
@@ -347,13 +347,20 @@ func GetDebrickedConfig(path string) *DebrickedConfig {
347
347
var yamlConfig DebrickedConfigYAML
348
348
yamlFile , err := os .ReadFile (path )
349
349
if err != nil {
350
- fmt .Printf ("Failed to read debricked config file on path \" %s\" " , path )
350
+ fmt .Printf (
351
+ "%s Failed to read debricked config file on path \" %s\" " ,
352
+ color .YellowString ("⚠️" ),
353
+ path ,
354
+ )
351
355
352
356
return nil
353
357
}
354
358
err = yaml .Unmarshal (yamlFile , & yamlConfig )
355
359
if err != nil {
356
- fmt .Printf ("Failed to unmarshal debricked config, is the format correct? \" %s\" " , yamlFile )
360
+ fmt .Printf ("%s Failed to unmarshal debricked config: \" %s\" \n " ,
361
+ color .YellowString ("⚠️" ),
362
+ color .RedString (err .Error ()),
363
+ )
357
364
358
365
return nil
359
366
}
You can’t perform that action at this time.
0 commit comments