remove console.error calls to leave responsibility to caller

This commit is contained in:
2025-01-22 15:51:00 -08:00
parent 8e944892cc
commit d1f8d940b3

View File

@@ -46,7 +46,6 @@ export class ApiBasedRepositoryLoader {
throw new Error("Received JSON object does not contain `all` field")
}
} catch(e: any) {
console.error("fetchAndUpdateSystemData call failed: ", e);
throw new ApiResponseError(e.message);
}
}
@@ -93,7 +92,6 @@ export class ApiBasedRepositoryLoader {
}))
}
} catch(e: any) {
console.error(`fetchAndUpdateRouteDataForSystemId failed for system ID ${systemId}: ${e}`);
throw new ApiResponseError(e.message);
}
}
@@ -132,7 +130,6 @@ export class ApiBasedRepositoryLoader {
await this.updateOrderedStopDataForExistingStops(json);
await this.updatePolylineDataForExistingRoutesAndApiResponse(json);
} catch(e: any) {
console.error(`fetchAndUpdateStopAndPolylineDataForRoutesWithSystemId failed for system ID ${systemId}:`, e);
throw new ApiResponseError(e.message);
}
}