Skip to content

Commit

Permalink
Standardized errors a bit, making it cleaner
Browse files Browse the repository at this point in the history
  • Loading branch information
AvivRubys committed Dec 8, 2014
1 parent 1909dea commit b63e7e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion providers/opensubtitles.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func (s openSubtitlesProvider) GetSubtitles(file, language string) ([]Subtitle,

err = client.Call("LogOut", token, nil)
if err != nil {
log.Printf("ERR LogOut from opensubtitles failed. Reason: %s\n", err)
log.Printf("Error in LogOut from opensubtitles. Reason: %s\n", err)
}

return subs, nil
Expand Down
2 changes: 1 addition & 1 deletion providers/providers.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func (db *providerDB) Get(path, language string) error {
defer wg.Done()
subs, err := p.GetSubtitles(path, language)
if err != nil {
log.Printf("ERR When getting subtitles from %s: %s", p.Name(), err)
log.Printf("Error when getting subtitles from %s: %s", p.Name(), err)
} else {
subReceiver <- subs
}
Expand Down

0 comments on commit b63e7e7

Please sign in to comment.