🔊 Reformat error logs generated by frontend BusinessData class
This commit is contained in:
@@ -56,10 +56,8 @@ export function BusinessDataProvider(props: { children: JSX.Element }) {
|
||||
line = json;
|
||||
}
|
||||
else {
|
||||
console.warn(`No line found for ${lineId} line id (${json}).`);
|
||||
console.warn(`No line found for ${lineId} line id:`, json);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
return line;
|
||||
}
|
||||
@@ -113,7 +111,7 @@ export function BusinessDataProvider(props: { children: JSX.Element }) {
|
||||
addPassages(json.passages);
|
||||
}
|
||||
else {
|
||||
console.warn(`No passage found for ${stopId} stop (${json}).`);
|
||||
console.warn(`No passage found for ${stopId} stop:`, json);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -194,7 +192,7 @@ ${linePassagesDestination.length} here... refresh all them.`);
|
||||
}
|
||||
}
|
||||
else {
|
||||
console.warn(`No stop found for '${name}' (${json}).`);
|
||||
console.warn(`No stop found for '${name}' query:`, json);
|
||||
}
|
||||
|
||||
return byIdStops;
|
||||
@@ -223,7 +221,7 @@ ${linePassagesDestination.length} here... refresh all them.`);
|
||||
shape = json;
|
||||
}
|
||||
else {
|
||||
console.warn(`No shape found for ${stopId} stop (${json}).`);
|
||||
console.warn(`No shape found for ${stopId} stop:`, json);
|
||||
}
|
||||
}
|
||||
return shape;
|
||||
|
Reference in New Issue
Block a user