Skip to content

Commit

Permalink
Add class name to error log to make finding missing delegates easier (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyschenko committed Jul 17, 2023
1 parent 9729a70 commit 21d0890
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion delegates/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
POM_ARTIFACT_ID=delegates
VERSION_NAME=1.1.0
VERSION_NAME=1.1.1
POM_NAME=delegates
POM_PACKAGING=jar
GROUP=com.revolut.recyclerkit
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class DelegatesManager(
return delegate.viewType
}
}
error("No delegate found for position $position and object $data ")
error("No delegate found for position $position and object ${data.javaClass} - $data")
}

fun addDelegate(delegate: RecyclerViewDelegate<out ListItem, out RecyclerView.ViewHolder>): DelegatesManager {
Expand Down

0 comments on commit 21d0890

Please sign in to comment.