Skip to content

Commit

Permalink
add title to insertstream error log
Browse files Browse the repository at this point in the history
  • Loading branch information
sonroyaalmerol committed Mar 2, 2024
1 parent 8dcfd27 commit c261741
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion m3u/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func parseM3UFile(filePath string, m3uIndex int) (error) {
if currentStream.Title != "" {
err = database.InsertStream(currentStream)
if err != nil {
return fmt.Errorf("InsertStream error: %v", err)
return fmt.Errorf("InsertStream error (title: %s): %v", currentStream.Title, err)
}
}
}
Expand Down

0 comments on commit c261741

Please sign in to comment.