Skip to content

Commit

Permalink
Change error message for request stream onUploadProgress stream support
Browse files Browse the repository at this point in the history
  • Loading branch information
jadedevin13 committed Sep 7, 2024
1 parent dcfc115 commit d6283a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/core/Ky.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ export class Ky {
// Add onUploadProgress handling
if (this._options.onUploadProgress && typeof this._options.onUploadProgress === 'function') {
if (!supportsRequestStreams) {
throw new Error('Streams are not supported in your environment. `ReadableStream` is missing.');
throw new Error('Request streams are not supported in your environment. The `duplex` option for `Request` is not available.');
}

const originalBody = this.request.body;
Expand Down

0 comments on commit d6283a2

Please sign in to comment.