Skip to content
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

Add error handling for missing GitHub token and explicitly stating VUE_APP_MOCKED_DATA=true in the UI #29

Conversation

abirismyname
Copy link
Contributor

@abirismyname abirismyname commented May 9, 2024

This pull request primarily focuses on improving the handling of environment variables in the GitHubApi.ts and MainComponent.vue files. The changes include adding a console log to notify when mock data is being used, throwing an error when the VUE_APP_GITHUB_TOKEN environment variable is not set, and displaying a message on the main component when mock data is being used.

User Feedback Enhancements:

Error Handling Improvements:

  • src/api/GitHubApi.ts: Added error handling to throw an error when the VUE_APP_GITHUB_TOKEN environment variable is not set. This prevents the application from making API calls without the necessary authentication token.

@martedesco martedesco self-requested a review May 10, 2024 07:39
@martedesco martedesco merged commit c5ccd1d into github-copilot-resources:main May 30, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants