Skip to content

Commit

Permalink
Added actual error message to log output (#44453)
Browse files Browse the repository at this point in the history
Fixes #44452
  • Loading branch information
nora-soderlund authored Dec 31, 2022
1 parent 554d061 commit 448c9c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/font/src/google/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ const downloadGoogleFonts: FontLoader = async ({
loaderContext.cacheable(false)
if (isDev) {
if (isServer) {
console.error(err)
Log.error(
`Failed to download \`${fontFamily}\` from Google Fonts. Using fallback font instead.`
)
Expand Down

0 comments on commit 448c9c8

Please sign in to comment.