Skip to content

fix: hide contributors section on network error (#2020)#2051

Open
gauravsaini wants to merge 1 commit into
ubuntu:mainfrom
gauravsaini:fix/socket-exception-error-ui-2020
Open

fix: hide contributors section on network error (#2020)#2051
gauravsaini wants to merge 1 commit into
ubuntu:mainfrom
gauravsaini:fix/socket-exception-error-ui-2020

Conversation

@gauravsaini

Copy link
Copy Markdown

Summary

Changes

  • Modified packages/app_center/lib/about/about_page.dart to return an empty widget on error instead of displaying error.toString()
  • Added unit test to verify error handling in packages/app_center/test/about_page_test.dart

Testing

The test verifies that when the contributors provider throws an error, the About page still renders correctly without showing the raw error message to the user.

When GitHub API is unreachable (e.g., SocketException), the raw error
message was displayed in the UI. Now the contributors section is hidden
gracefully when loading fails.
@gauravsaini gauravsaini reopened this Mar 23, 2026
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.

SocketException (errno=13 Permission denied) when fetching GitHub contributors; error shown in UI on startup

1 participant