Skip to content

lib: Print error messaage from load_config function when panicing - #167

Merged
barthalion merged 1 commit into
flatpak:masterfrom
dcbaker:submit/propogate-config-errors
Aug 24, 2026
Merged

lib: Print error messaage from load_config function when panicing#167
barthalion merged 1 commit into
flatpak:masterfrom
dcbaker:submit/propogate-config-errors

Conversation

@dcbaker

@dcbaker dcbaker commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

The current implementation discards the essential information of the error, such as whether the file was missing, or unreadable, or if there was an error in deserializing. This adds the underlying error message to the panic, which can help debug invalid configurations.

Related: #156

@dcbaker
dcbaker force-pushed the submit/propogate-config-errors branch from 827b0fa to 2d784dc Compare August 13, 2026 18:13
The current implementation discards the essential information of the error, such
as whether the file was missing, or unreadable, or if there was an error in
deserializing. This adds the underlying error message to the panic, which
can help debug invalid configurations.

Related: flatpak#156
@barthalion
barthalion force-pushed the submit/propogate-config-errors branch from 2d784dc to 3b37793 Compare August 23, 2026 21:24
@barthalion
barthalion merged commit 8da2bdd into flatpak:master Aug 24, 2026
6 checks passed
@dcbaker
dcbaker deleted the submit/propogate-config-errors branch August 24, 2026 17:12
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.

2 participants