Skip to content

Commit ad19275

Browse files
committed
Update CHANGELOG
1 parent af7048a commit ad19275

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010

1111
## Version History
1212

13+
### v5.4.0
14+
15+
- :rocket: Surface upstream response if no count is present
16+
1317
### v5.3.0
1418

1519
- :bug: If no `esriFeature.geometry` is returned, skip the Feature

lib/geometry.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ export default class Geometry extends EventEmitter {
6969
if (!res.ok) return this.emit('error', await res.text());
7070

7171
const meta = await res.json();
72-
if (isNaN(meta.count)) this.emit('error', 'Unable to determine feature count');
72+
if (isNaN(meta.count)) {
73+
return this.emit(`error', 'Unable to determine feature count - ${JSON.stringify(meta)}`);
74+
}
7375

7476
const count = meta.count;
7577
let curr = 0;

0 commit comments

Comments
 (0)