Skip to content

Commit

Permalink
chore: improve API error message (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
marandaneto authored Jan 18, 2024
1 parent c4e5e30 commit 68662a9
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,8 @@ internal class PostHogApiError(
val statusCode: Int,
override val message: String,
val body: ResponseBody?,
) : RuntimeException(message)
) : RuntimeException(message) {
override fun toString(): String {
return "PostHogApiError(statusCode=$statusCode, message='$message')"
}
}

0 comments on commit 68662a9

Please sign in to comment.