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

src/bundle: prefix manifest load errors with hint on manifest #1348

Merged
merged 1 commit into from Feb 26, 2024

Conversation

ejoerns
Copy link
Member

@ejoerns ejoerns commented Feb 7, 2024

If we only forward the parsing errors from load_manifest_*() methods, they will look like:

Failed to create bundle: Key file contains line 'EOF' which is not a key-value pair, group, or comment

This does no real indication that it's the manifest that RAUC failed to read and will thus not be very helpful for people who are not that deep into RAUC.

With the prefix, we get a better hint now:

Failed to create bundle: Failed to load manifest: Key file contains line 'EOF' which is not a key-value pair, group, or comment

If we only forward the parsing errors from load_manifest_*() methods,
they will look like:

| Failed to create bundle: Key file contains line 'EOF' which is not a key-value pair, group, or comment

This does no real indication that it's the manifest that RAUC failed to
read and will thus not be very helpful for people who are not that deep
into RAUC.

With the prefix, we get a better hint now:

| Failed to create bundle: Failed to load manifest: Key file contains line ?EOF? which is not a key-value pair, group, or comment

Signed-off-by: Enrico Joerns <ejo@pengutronix.de>
Copy link

codecov bot commented Feb 7, 2024

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (a1ca612) 79.96% compared to head (09cb467) 79.95%.

Files Patch % Lines
src/bundle.c 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1348      +/-   ##
==========================================
- Coverage   79.96%   79.95%   -0.01%     
==========================================
  Files          67       67              
  Lines       20060    20060              
==========================================
- Hits        16040    16038       -2     
- Misses       4020     4022       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ejoerns ejoerns requested a review from jluebbe February 25, 2024 11:33
@jluebbe jluebbe merged commit def5885 into rauc:master Feb 26, 2024
16 of 18 checks passed
@ejoerns ejoerns deleted the load-manifest-in-error branch February 28, 2024 18:18
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