Skip to content

Commit

Permalink
fix: give arrayBuffer a descriptive error
Browse files Browse the repository at this point in the history
fixes #27
  • Loading branch information
alexghr committed Oct 30, 2021
1 parent 2a85b67 commit 20d7c4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/response.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export class GotFetchResponse implements Response {
}

arrayBuffer(): Promise<ArrayBuffer> {
throw new Error();
throw new Error("`arrayBuffer` not implemented");
}

blob(): Promise<Blob> {
Expand Down Expand Up @@ -98,4 +98,4 @@ export class GotFetchResponse implements Response {
static error(): GotFetchResponse {
return new GotFetchResponse(null, { type: 'error' });
}
}
}

0 comments on commit 20d7c4d

Please sign in to comment.