mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
remove console.error calls to leave responsibility to caller
This commit is contained in:
@@ -46,7 +46,6 @@ export class ApiBasedRepositoryLoader {
|
|||||||
throw new Error("Received JSON object does not contain `all` field")
|
throw new Error("Received JSON object does not contain `all` field")
|
||||||
}
|
}
|
||||||
} catch(e: any) {
|
} catch(e: any) {
|
||||||
console.error("fetchAndUpdateSystemData call failed: ", e);
|
|
||||||
throw new ApiResponseError(e.message);
|
throw new ApiResponseError(e.message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -93,7 +92,6 @@ export class ApiBasedRepositoryLoader {
|
|||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
} catch(e: any) {
|
} catch(e: any) {
|
||||||
console.error(`fetchAndUpdateRouteDataForSystemId failed for system ID ${systemId}: ${e}`);
|
|
||||||
throw new ApiResponseError(e.message);
|
throw new ApiResponseError(e.message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -132,7 +130,6 @@ export class ApiBasedRepositoryLoader {
|
|||||||
await this.updateOrderedStopDataForExistingStops(json);
|
await this.updateOrderedStopDataForExistingStops(json);
|
||||||
await this.updatePolylineDataForExistingRoutesAndApiResponse(json);
|
await this.updatePolylineDataForExistingRoutesAndApiResponse(json);
|
||||||
} catch(e: any) {
|
} catch(e: any) {
|
||||||
console.error(`fetchAndUpdateStopAndPolylineDataForRoutesWithSystemId failed for system ID ${systemId}:`, e);
|
|
||||||
throw new ApiResponseError(e.message);
|
throw new ApiResponseError(e.message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user