Skip to content

Better error panels and centralized error handling in ErrorInfo#12603

Merged
Stypox merged 1 commit intoTeamNewPipe:devfrom
Stypox:better-error-panel
Sep 5, 2025
Merged

Better error panels and centralized error handling in ErrorInfo#12603
Stypox merged 1 commit intoTeamNewPipe:devfrom
Stypox:better-error-panel

Conversation

@Stypox
Copy link
Copy Markdown
Member

@Stypox Stypox commented Sep 5, 2025

What is it?

  • Bugfix (user facing)
  • Feature (user facing)
  • Codebase improvement (dev facing)
  • Meta improvement to the project (dev facing)

Description of the changes in your PR

This is a followup of #12578 that will also be used as a base for #12404. With these changes, every time an error panel is shown, it will be possible to open it in browser the corresponding resource (if applicable).

Also, the ErrorInfo class is now fully serializable, as it does not store the throwable anymore, but it rather holds all information about the throwable that might be needed (e.g. whether there is a ReCaptcha URL, whether the error can be retried, whether the error is reportable).

In RouterActivity, when a ReCaptcha happens, the recaptcha URL is now passed to the recaptcha activity as expected. This was likely a bug before.

This is for example the trending tab when network is off, you can now open in browser the trending URL:

image

In SearchFragment, I had to build the openInBrowserUrl manually based on the search query, e.g. the following image redirects to https://www.youtube.com/results?search_query=test&sp=8AEB .

image

APK testing

The APK can be found by going to the "Checks" tab below the title. On the left pane, click on "CI", scroll down to "artifacts" and click "app" to download the zip file which contains the debug APK of this PR. You can find more info and a video demonstration on this wiki page.

app(3).zip

Due diligence

@github-actions github-actions Bot added the size/large PRs with less than 750 changed lines label Sep 5, 2025
Copy link
Copy Markdown
Contributor

@Profpatsch Profpatsch left a comment

Choose a reason for hiding this comment

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

Looks good to me

@Stypox Stypox merged commit 8afb00d into TeamNewPipe:dev Sep 5, 2025
8 checks passed
@TobiGr TobiGr added the GUI Issue is related to the graphical user interface label Sep 5, 2025
@TobiGr TobiGr mentioned this pull request Dec 21, 2025
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

GUI Issue is related to the graphical user interface size/large PRs with less than 750 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants