fix: pipeline

This commit is contained in:
2026-02-16 22:35:39 +01:00
parent 3d498ba46f
commit a2e1cc9850
2 changed files with 4 additions and 5 deletions

View File

@@ -30,8 +30,9 @@ async function verifyImage(path: string): Promise<boolean> {
if (!contentType?.includes('image/png')) {
const body = await response.text();
console.log(` Headers: ${JSON.stringify(Object.fromEntries(response.headers))}`);
console.log(` Status Text: ${response.statusText}`);
throw new Error(
`Content-Type: ${contentType}. Body preview: ${body.substring(0, 500).replace(/\n/g, ' ')}...`,
`Status: ${response.status}. Content-Type: ${contentType}. Body preview: ${body.substring(0, 1000).replace(/\n/g, ' ')}...`,
);
}