mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-12 16:52:50 +00:00
log failed API requests in console
to more easily debug API issues in the future
This commit is contained in:
@@ -645,6 +645,8 @@ export default {
|
||||
|
||||
if (callback) {
|
||||
if (err) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.error('API error:', err);
|
||||
return callback(err);
|
||||
} else {
|
||||
if (path.indexOf('.json') !== -1) {
|
||||
|
||||
Reference in New Issue
Block a user