Skip to content

fix(fetch-wrapper): improve error message when 'fetch' implementation is not present #617

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

oscard0m
Copy link
Member

@oscard0m oscard0m commented Jul 15, 2023

Resolves #616


Behavior

Before the change?

Not very clear error message when fetch implementation is missing

After the change?

Improved error message when fetch implementation is missing

Other information


Additional info

Pull request checklist

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)
  • Added the appropriate label for the given change

Does this introduce a breaking change?

Please see our docs on breaking changes to help!

  • Yes (Please add the Type: Breaking change label)
  • No

If Yes, what's the impact:

  • N/A

Pull request type

Type: Maintenance


@oscard0m oscard0m added the Type: Maintenance Any dependency, housekeeping, and clean up Issue or PR label Jul 15, 2023
@gr2m gr2m changed the title chore(fetch-wrapper): improve error message when 'fetch' implementation is not present fix(fetch-wrapper): improve error message when 'fetch' implementation is not present Jul 18, 2023
Copy link
Contributor

@gr2m gr2m left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed to commit message to a fix, as it's changing behavior in production.

I block the pull request just in case as we should merge octokit/octokit.js#2502 first

@nickfloyd
Copy link
Contributor

nickfloyd commented Jul 18, 2023

octokit/octokit.js#2502 should be g2g in my opinion. Thank you for getting this knocked out @oscard0m ❤️

@oscard0m oscard0m requested a review from gr2m July 18, 2023 14:55
@oscard0m oscard0m enabled auto-merge (squash) July 18, 2023 14:55
@oscard0m oscard0m merged commit a83722c into main Jul 19, 2023
@oscard0m oscard0m deleted the improve-message-when-no-fetch-implementation-is-present branch July 19, 2023 00:28
@github-actions
Copy link

🎉 This PR is included in version 8.1.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released Type: Maintenance Any dependency, housekeeping, and clean up Issue or PR
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Update error message in request.js
4 participants