Even after #32, API errors (as opposed to HTTP errors) would be dropped on the floor, leading to no image and no error. This change adopts what MapboxGeocoder.swift and MapboxDirections.swift do, additionally using the absence of a decodable image as an indicator of an error.
Even after #32, API errors (as opposed to HTTP errors) would be dropped on the floor, leading to no image and no error. This change adopts what MapboxGeocoder.swift and MapboxDirections.swift do, additionally using the absence of a decodable image as an indicator of an error.