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

feat: improve error logs when running rush list failed #32

Merged
merged 2 commits into from
Mar 1, 2024

Conversation

chengcyber
Copy link
Member

@chengcyber chengcyber commented Feb 29, 2024

Basic Checks

Have you run rush change for this change?

  • Yes
  • No

If No, please run rush change before, this is necessary.

If adding a new feature, the PR's description includes:

  • Reason for adding this feature
  • How to use
  • A basic example

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

If yes, please describe the impact and migration path for existing applications:

Summary

Improve error log when profile is selecting a tag specified with no projects.

Detail

CleanShot 2024-02-29 at 14 02 24@2x

How to test it

@chengcyber chengcyber enabled auto-merge February 29, 2024 22:03
@@ -416,6 +416,10 @@ ${availableProfiles.join(',')}
stdio: ['pipe', 'pipe', 'pipe']
});

if (result.status !== 0) {
throw new Error(`Get projects from selections failed: ${result.stderr}`);
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
throw new Error(`Get projects from selections failed: ${result.stderr}`);
throw new Error(`Failed to evaluate the Sparo profile's project selectors: ${result.stderr}`);

@chengcyber chengcyber merged commit 7d6ac10 into main Mar 1, 2024
2 checks passed
@chengcyber chengcyber deleted the feat-improve-checkout-error-log branch March 1, 2024 19:59
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