Skip to content

Conversation

@soridalac
Copy link
Contributor

What does this PR do?

create table for JSON error when using data import tree.

What issues does this PR fix or reference?

@W-17774391@

{ key: 'fields', name: 'Fields' },
],
title: 'import Errors',
});
Copy link
Member

Choose a reason for hiding this comment

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

since we manually report the errors in the table we need to manually set the exit code to 1 here:
https://github.com/salesforcecli/plugin-deploy-retrieve/blob/a45867d06f7f511e973a955d4bab164d6486863d/src/commands/project/delete/source.ts#L306

@cristiand391
Copy link
Member

QA notes:
setup:
scratch org using ebikes-lwc project

❌ JSON parse failure instead of error msg on non-sobject tree API error responses:
Screenshot 2025-02-21 at 16 26 58

NOTE: I put an invalid sobject in the plan file to get the err

🟢 table with record errors printed correctly
⚠️ JSON error is still show after table:
Screenshot 2025-02-21 at 16 58 29

🟢 if error doesn't have cause set they are correctly re-thrown

@cristiand391 cristiand391 merged commit 313a731 into main Feb 25, 2025
33 checks passed
@cristiand391 cristiand391 deleted the sl/W-17774391 branch February 25, 2025 14:33
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.

3 participants