Skip to content

Improve uninstall list load error handling#895

Open
breshinotestachegira wants to merge 1 commit intoKlocman:masterfrom
breshinotestachegira:fix/issue-816-uninstall-list-errors
Open

Improve uninstall list load error handling#895
breshinotestachegira wants to merge 1 commit intoKlocman:masterfrom
breshinotestachegira:fix/issue-816-uninstall-list-errors

Conversation

@breshinotestachegira
Copy link
Copy Markdown

@breshinotestachegira breshinotestachegira commented Mar 27, 2026

Summary

This PR makes .bcul uninstall list loading more robust and improves the error shown when loading fails.

Changes

  • reject empty uninstall list files with a clear error
  • handle leading BOM / whitespace before the XML root element
  • validate the expected root element before deserializing
  • convert generic XML deserialization failures into more useful messages with line/position details when available
  • show the improved error through the existing uninstall-list error dialog
  • add tests for empty files and BOM-prefixed valid lists

Why

Users currently get generic errors like There is an error in XML document (0, 0) when opening some uninstall list files. This change makes common failure modes easier to diagnose and avoids failing on benign leading BOM/whitespace cases.

Closes #816

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.

BCunistaller Ran into some unexpected error

1 participant