🔊 Reformat error logs generated by frontend BusinessData class

This commit is contained in:
2023-05-08 17:25:14 +02:00
parent 0ba4c1e6fa
commit de82eb6c55

View File

@@ -56,10 +56,8 @@ export function BusinessDataProvider(props: { children: JSX.Element }) {
line = json; line = json;
} }
else { else {
console.warn(`No line found for ${lineId} line id (${json}).`); console.warn(`No line found for ${lineId} line id:`, json);
} }
} }
return line; return line;
} }
@@ -113,7 +111,7 @@ export function BusinessDataProvider(props: { children: JSX.Element }) {
addPassages(json.passages); addPassages(json.passages);
} }
else { 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 { else {
console.warn(`No stop found for '${name}' (${json}).`); console.warn(`No stop found for '${name}' query:`, json);
} }
return byIdStops; return byIdStops;
@@ -223,7 +221,7 @@ ${linePassagesDestination.length} here... refresh all them.`);
shape = json; shape = json;
} }
else { else {
console.warn(`No shape found for ${stopId} stop (${json}).`); console.warn(`No shape found for ${stopId} stop:`, json);
} }
} }
return shape; return shape;