mirror of
https://github.com/docker/build-push-action.git
synced 2025-06-28 12:14:15 +00:00
print error data
This commit is contained in:
parent
8c8cf247f0
commit
1f1f6acb04
1 changed files with 1 additions and 1 deletions
|
@ -171,7 +171,7 @@ export class WarpBuildRemoteBuilders {
|
||||||
|
|
||||||
// Not a retriable error
|
// Not a retriable error
|
||||||
const errorData = await response.json().catch(() => ({message: 'Unknown error'}));
|
const errorData = await response.json().catch(() => ({message: 'Unknown error'}));
|
||||||
throw new Error(`API Error: HTTP Status ${statusCode} - ${errorData.description || errorData.message || 'Unknown error'}`);
|
throw new Error(`API Error: HTTP Status ${statusCode} - ${JSON.stringify(errorData) || errorData.message || 'Unknown error'}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
const data = (await response.json()) as AssignBuilderResponse;
|
const data = (await response.json()) as AssignBuilderResponse;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue