Unverified Commit aaa94cd6 authored by Balázs Orbán's avatar Balázs Orbán Committed by GitHub

fix(font): expose loading error for debugging (#53284)

### What?

Exposing the original error message.

### Why?

While looking at #53279, I noticed that we don't show the original error message, which makes it hard to guess why the error was thrown in the first place.

### How?

Related #53279
parent 0814c82d
...@@ -164,7 +164,9 @@ const nextFontGoogleFontLoader: FontLoader = async ({ ...@@ -164,7 +164,9 @@ const nextFontGoogleFontLoader: FontLoader = async ({
if (isDev) { if (isDev) {
if (isServer) { if (isServer) {
Log.error( Log.error(
`Failed to download \`${fontFamily}\` from Google Fonts. Using fallback font instead.` `Failed to download \`${fontFamily}\` from Google Fonts. Using fallback font instead.\n\n${
(err as Error).message
}}`
) )
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment