🥅 Print panic errors

This commit is contained in:
perp 2023-11-12 00:46:29 +00:00
parent a25784c029
commit 0b885ba356
1 changed files with 2 additions and 2 deletions

View File

@ -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()