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