Skip to content

Commit 5251169

Browse files
committed
fix: improve http error message
1 parent 8c5b281 commit 5251169

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/schema-to-typescript/common/core/common-http-client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ export class CommonHttpClient {
806806
this.options,
807807
this.options.formatHttpErrorMessage
808808
? this.options.formatHttpErrorMessage(fetchResponse, fetchRequest)
809-
: `HTTP Error ${fetchResponse.status} (${fetchResponse.statusText})`
809+
: `HTTP Error ${request.method} ${url.toString()} ${fetchResponse.status} (${fetchResponse.statusText})`
810810
);
811811
}
812812
return fetchResponse;

0 commit comments

Comments
 (0)