Skip to content

Commit

Permalink
MapRoulette: Add error logging
Browse files Browse the repository at this point in the history
This makes it easier to debug the error cases when the MR API returns an error.
  • Loading branch information
tordans committed Feb 8, 2025
1 parent 01a11e9 commit e87b71c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/ui/maproulette_details.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ export function uiMapRouletteDetails(context) {
highlightFeature(osmId);
});
}).catch(e => {
console.error('error_loading_task_details:', e);
const selection = details.selectAll('.qa-details-subsection');
selection.html(''); // replace contents
const error = selection
Expand Down

0 comments on commit e87b71c

Please sign in to comment.