Skip to content

Commit

Permalink
Replaces 500 error with 404 when no schedules found
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewl committed Nov 4, 2023
1 parent 1281e4d commit 83f6c3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uk-rail-schedule-api.go
Original file line number Diff line number Diff line change
Expand Up @@ -675,5 +675,5 @@ func dbGetSchedules(identifierType string, identifier string, date string, toc s
return schedules, nil
}

return nil, errors.New("no schedule found")
return nil, nil
}

0 comments on commit 83f6c3b

Please sign in to comment.