Improve error message
This commit is contained in:
parent
e3d9ff941f
commit
e0424c3b64
@ -64,7 +64,7 @@ func main() {
|
|||||||
}
|
}
|
||||||
// The backend doesn't return an error for non-existent reports, so check the content length instead
|
// The backend doesn't return an error for non-existent reports, so check the content length instead
|
||||||
if res.ContentLength == 0 {
|
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()
|
defer res.Body.Close()
|
||||||
r = res.Body
|
r = res.Body
|
||||||
|
Loading…
Reference in New Issue
Block a user