mirror of
https://github.com/docker/build-push-action.git
synced 2025-06-28 07:16:42 +02:00
changes error print
This commit is contained in:
parent
bbbfb72624
commit
8c8cf247f0
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.message || 'Unknown error'}`);
|
throw new Error(`API Error: HTTP Status ${statusCode} - ${errorData.description || 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