Skip to content

Commit

Permalink
feat: better error message for network error
Browse files Browse the repository at this point in the history
  • Loading branch information
Nodonisko committed Apr 18, 2024
1 parent c64644a commit 166e7d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/yarnpkg-core/sources/httpUtils.ts
Expand Up @@ -61,7 +61,7 @@ async function prettyNetworkError(response: Promise<Response>, {configuration, c

if (message == null) {
if (err.message.startsWith(`Response code`)) {
message = `The remote server failed to provide the requested resource`;
message = `The remote server failed to provide the requested resource (${err.response?.statusCode} ${err.request?.options?.method} ${err.request?.options?.url?.href})`;
} else {
message = err.message;
}
Expand Down

0 comments on commit 166e7d6

Please sign in to comment.