diff --git a/src/components/misc/ImageWrapper.astro b/src/components/misc/ImageWrapper.astro index 18cac2c..610554f 100644 --- a/src/components/misc/ImageWrapper.astro +++ b/src/components/misc/ImageWrapper.astro @@ -32,10 +32,11 @@ if (isLocal) { let normalizedPath = path .normalize(path.join('../../', basePath, src)) .replace(/\\/g, '/') - img = await files[normalizedPath]() - if (!img) { - console.error(`No image found for path ${normalizedPath}`) + const file = files[normalizedPath] + if (!file) { + console.error(`\n[ERROR] Image file not found: ${normalizedPath.replace('../../', 'src/')}`) } + img = await file() } const imageClass = 'w-full h-full object-cover'