fix: pipeline
This commit is contained in:
@@ -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, ' ')}...`,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user