🥅 Print panic errors
This commit is contained in:
parent
a25784c029
commit
0b885ba356
|
@ -17,7 +17,7 @@ var scrapeCmd = &cobra.Command{
|
|||
// Get file lines
|
||||
lines, err := utils.Read(file)
|
||||
if err != nil {
|
||||
log.Panic().Err(err)
|
||||
log.Panic().Err(err).Msg("")
|
||||
}
|
||||
|
||||
// Get job count & make channel
|
||||
|
@ -27,7 +27,7 @@ var scrapeCmd = &cobra.Command{
|
|||
// Create new pool
|
||||
pool, err := ants.NewPool(threads)
|
||||
if err != nil {
|
||||
log.Panic().Err(err)
|
||||
log.Panic().Err(err).Msg("")
|
||||
}
|
||||
defer pool.Release()
|
||||
|
||||
|
|
Loading…
Reference in New Issue