fix: actually write image

This commit is contained in:
Max Richter
2025-11-04 16:04:51 +01:00
parent bed7d1a11b
commit 7664abe089
3 changed files with 5 additions and 4 deletions

View File

@@ -102,7 +102,9 @@ export async function createResource(
body: isJson ? JSON.stringify(content) : content,
});
if (!response.ok) {
throw new Error(`Failed to create resource: ${response.status}`);
throw new Error(
`Failed to create resource (resources/${path}) : ${response.status}`,
);
}
return response.json();
}