Log invalid locations
This commit is contained in:
@@ -27,6 +27,7 @@ export default class GoogleMaps extends Geocoder {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( !data.results.length ) {
|
if ( !data.results.length ) {
|
||||||
|
console.log( `No results found for location "${ location }"` );
|
||||||
throw new CodedError( ErrorCode.NoLocationFound );
|
throw new CodedError( ErrorCode.NoLocationFound );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user