Skip to content

Commit

Permalink
Paywalls: improve error log when images fail to load (#1454)
Browse files Browse the repository at this point in the history
Without this, the error we were logging didn't have any information:
> RevenueCatUI E Error loading image from
'https://assets.pawwalls.com/....jpg[':](https://assets.pawwalls.com/....jpg':)
coil.request.ErrorResult@2678e133
  • Loading branch information
NachoSoto authored Nov 9, 2023
1 parent 27d7eb8 commit e2dba78
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ private fun Image(
is ImageSource.Remote -> "Error loading image from '${source.urlString}'"
}

Logger.e("$error: ${it.result}")
Logger.e(error, it.result.throwable)
}
else -> {}
}
Expand Down

0 comments on commit e2dba78

Please sign in to comment.