We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af7048a commit ad19275Copy full SHA for ad19275
CHANGELOG.md
@@ -10,6 +10,10 @@
10
11
## Version History
12
13
+### v5.4.0
14
+
15
+- :rocket: Surface upstream response if no count is present
16
17
### v5.3.0
18
19
- :bug: If no `esriFeature.geometry` is returned, skip the Feature
lib/geometry.ts
@@ -69,7 +69,9 @@ export default class Geometry extends EventEmitter {
69
if (!res.ok) return this.emit('error', await res.text());
70
71
const meta = await res.json();
72
- if (isNaN(meta.count)) this.emit('error', 'Unable to determine feature count');
+ if (isNaN(meta.count)) {
73
+ return this.emit(`error', 'Unable to determine feature count - ${JSON.stringify(meta)}`);
74
+ }
75
76
const count = meta.count;
77
let curr = 0;
0 commit comments