Skip to content

Commit

Permalink
--fix error message
Browse files Browse the repository at this point in the history
  • Loading branch information
beeeku committed Jan 8, 2019
1 parent db5e7f8 commit 43362ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reverse-geocode.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module.exports = async latlng => {
await redis.set(latlng, response.json.results[0].formatted_address);
return response.json.results[0].formatted_address;
} catch (error) {
console.log(error);
console.log(error.json.error_message);
return '';
}
};

0 comments on commit 43362ed

Please sign in to comment.