Unverified Commit 448c9c82 authored by Nora Söderlund's avatar Nora Söderlund Committed by GitHub

Added actual error message to log output (#44453)

Fixes #44452
parent 554d0613
...@@ -197,6 +197,7 @@ const downloadGoogleFonts: FontLoader = async ({ ...@@ -197,6 +197,7 @@ const downloadGoogleFonts: FontLoader = async ({
loaderContext.cacheable(false) loaderContext.cacheable(false)
if (isDev) { if (isDev) {
if (isServer) { if (isServer) {
console.error(err)
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.`
) )
......
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