Skip to content

Commit e4fe854

Browse files
committed
fix: update error messages
1 parent ba8382a commit e4fe854

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

ios/RNGeocoder.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ @implementation RNGeocoder
4141
return reject(@"EMPTY_RESULT", @"Geocoder returned an empty list.", error);
4242
}
4343

44-
return reject(@"NATIVE_ERROR", @"reverseGeocodeLocation failed.", error);
44+
return reject(@"NATIVE_ERROR", @"geocodePosition failed.", error);
4545
}
4646
resolve([self placemarksToDictionary:placemarks maxResult:maxResult]);
4747
};
@@ -74,7 +74,7 @@ @implementation RNGeocoder
7474
if (placemarks.count == 0) {
7575
return reject(@"NOT_FOUND", @"Geocoder returned an empty list.", error);
7676
}
77-
return reject(@"NATIVE_ERROR", @"geocodeAddressString failed.", error);
77+
return reject(@"NATIVE_ERROR", @"geocodeAddress failed.", error);
7878
}
7979
resolve([self placemarksToDictionary:placemarks maxResult:maxResult]);
8080
};
@@ -111,7 +111,7 @@ @implementation RNGeocoder
111111
if (placemarks.count == 0) {
112112
return reject(@"NOT_FOUND", @"Geocoder returned an empty list.", error);
113113
}
114-
return reject(@"NATIVE_ERROR", @"geocodeAddressString failed.", error);
114+
return reject(@"NATIVE_ERROR", @"geocodeAddressInRegion failed.", error);
115115
}
116116
resolve([self placemarksToDictionary:placemarks maxResult:maxResult]);
117117
};

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@
108108
"tagName": "v%s"
109109
},
110110
"npm": {
111-
"publish": true
111+
"publish": true,
112+
"skipChecks": true
112113
},
113114
"github": {
114115
"release": true

0 commit comments

Comments
 (0)