refactor(common): add a message to preview throwable

This commit is contained in:
Harsh Shandilya 2022-10-03 11:59:42 +05:30
parent d178bebebd
commit 293d12454f
No known key found for this signature in database
2 changed files with 1 additions and 2 deletions

View file

@ -67,5 +67,5 @@ fun NetworkError(
@ThemePreviews
@Composable
fun NetworkErrorPreview() {
LobstersTheme { NetworkError(label = "Failed to load posts", error = Throwable()) }
LobstersTheme { NetworkError(label = "Failed to load posts", error = Throwable("Preview")) }
}