@@ -70,7 +70,9 @@ export async function createRouter(
|
||||
if (allocationsResp.status !== 200) {
|
||||
const body = await allocationsResp.text();
|
||||
logger.error(`failed to call /v1/allocations endpoint: ${body}`);
|
||||
res.status(allocationsResp.status).send(body);
|
||||
res.status(allocationsResp.status).json({
|
||||
message: body,
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -110,7 +112,9 @@ export async function createRouter(
|
||||
if (apiResp.status !== 200) {
|
||||
const body = await apiResp.text();
|
||||
logger.error(`failed to call /v1/job/:job_id/versions endpoint: ${body}`);
|
||||
resp.status(apiResp.status).send(body);
|
||||
resp.status(apiResp.status).send({
|
||||
message: body,
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user