Skip to content

Commit

Permalink
Implement feedback from PR
Browse files Browse the repository at this point in the history
  • Loading branch information
flikkr committed Dec 28, 2024
1 parent c84026e commit 4402b98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion flutter_google_places_sdk_android/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Add support for Places (new) API
* Add [Text Search](https://developers.google.com/maps/documentation/places/web-service/text-search) feature
* Add [Nearby Search](https://developers.google.com/maps/documentation/places/web-service/nearby-search) feature
* Add `reviews` and `nameLanguageCode` when fetching place
* Add `reviews` and `nameLanguageCode` fields to response from `fetchPlace`

## 0.1.9

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ class FlutterGooglePlacesSdkPlugin : FlutterPlugin, MethodCallHandler {
val exception = task.exception
print("searchByText Exception: $exception")
result.error(
"API_ERROR_SEARCH", exception?.message ?: "Unknown exception",
"API_ERROR_SEARCH_BY_TEXT", exception?.message ?: "Unknown exception",
mapOf("type" to (exception?.javaClass?.toString() ?: "null"))
)
}
Expand Down Expand Up @@ -232,7 +232,7 @@ class FlutterGooglePlacesSdkPlugin : FlutterPlugin, MethodCallHandler {
val exception = task.exception
print("searchNearby Exception: $exception")
result.error(
"API_ERROR_SEARCH", exception?.message ?: "Unknown exception",
"API_ERROR_NEARBY_SEARCH", exception?.message ?: "Unknown exception",
mapOf("type" to (exception?.javaClass?.toString() ?: "null"))
)
}
Expand Down

0 comments on commit 4402b98

Please sign in to comment.