1
0
Fork 0
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:
Prajjwal 2025-03-21 09:54:11 +05:30
parent bbbfb72624
commit 8c8cf247f0

View file

@ -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;