2
0
Fork 0
mirror of https://code.forgejo.org/docker/build-push-action.git synced 2025-06-24 16:05:54 +00: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
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;