Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/commands/issue/plan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function validateAutofixState(
if (!state) {
throw new ValidationError(
`No root cause analysis found for issue ${issueId}.\n` +
`Run 'sentry issue explain ${issueId}' first.`
`Run 'sentry issue explain ${issueId}' first to identify the root cause.`
);
}

Expand All @@ -74,7 +74,8 @@ function validateAutofixState(
const causes = extractRootCauses(state);
if (causes.length === 0) {
throw new ValidationError(
"No root causes identified. Cannot create a plan without a root cause."
`Root cause analysis found no causes for issue ${issueId}.\n` +
`Try running 'sentry issue explain ${issueId} --force' to retry the analysis.`
Copy link
Member

Choose a reason for hiding this comment

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

I'd say we should go one step further and offer to run this for the user if this stdin.isTTY is true

);
}

Expand Down
Loading