2
0
Fork 0
mirror of https://code.forgejo.org/docker/build-push-action.git synced 2025-06-24 16:05:54 +00:00

print error data

This commit is contained in:
Prajjwal 2025-03-21 09:55:42 +05:30
parent 8c8cf247f0
commit 1f1f6acb04

View file

@ -171,7 +171,7 @@ export class WarpBuildRemoteBuilders {
// Not a retriable 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;