Log invalid locations

This commit is contained in:
Matthew Oslan
2020-07-10 00:15:52 -04:00
parent 07500013b1
commit 91968dc1be

View File

@@ -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 );
} }