Return from error case.

master
Icedream 2018-06-14 00:20:00 +02:00
parent 13b42f3238
commit 47fa897aed
Signed by: icedream
GPG Key ID: 1573F6D8EFE4D0CF
1 changed files with 1 additions and 0 deletions

View File

@ -448,6 +448,7 @@ func main() {
if competitionTeam.Id == 0 {
conn.Noticef(sender, "Sorry, something went horribly wrong here.")
log.Print("Returned team ID of a team in competition was 0...")
return
}
fixtures, err := footballData.FixturesOfTeam(competitionTeam.Id).