Improve error message

This commit is contained in:
Elara 2023-08-25 20:27:50 -07:00
parent e3d9ff941f
commit e0424c3b64

View File

@ -64,7 +64,7 @@ func main() {
}
// The backend doesn't return an error for non-existent reports, so check the content length instead
if res.ContentLength == 0 {
log.Fatal("Could not find a TAF report for the specified airport").Str("id", *identifier).Send()
log.Fatal("Couldn't find a TAF report for the specified airport").Str("id", *identifier).Send()
}
defer res.Body.Close()
r = res.Body