Skip to content

Commit

Permalink
improve check
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasneirynck committed Jan 3, 2022
1 parent 83cc81f commit 0e7d8c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/plugins/maps/server/mvt/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ export async function collectStream(stream: Iterable<Buffer>): Promise<Buffer> {
}

export function isAbortError(error: Error) {
return error.message === 'Request aborted' || error.message === 'Aborted';
return error.name === 'RequestAbortedError';
}

0 comments on commit 0e7d8c2

Please sign in to comment.