Skip to content

Add more error reporting for getGradleSourceSets failure #139

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

Merged
merged 1 commit into from
Apr 25, 2024

Conversation

Arthurm1
Copy link
Contributor

This passes stderr back if retrieving source sets fails. Before there sometimes wasn't enough information to diagnose.

} catch (GradleConnectionException | IllegalStateException e) {
summary = e.getMessage();
} catch (GradleConnectionException | IllegalStateException | IOException e) {
summary = e.getMessage() + "\n" + errorOut.toString();
Copy link
Member

Choose a reason for hiding this comment

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

Let's check if errorOut is empty or not before appending to the summary text.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Copy link
Member

@jdneo jdneo left a comment

Choose a reason for hiding this comment

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

LGTM

@jdneo jdneo merged commit d63a065 into microsoft:develop Apr 25, 2024
@jdneo
Copy link
Member

jdneo commented Apr 25, 2024

Thank you @Arthurm1

@jdneo jdneo added the enhancement New feature or request label Apr 25, 2024
@jdneo jdneo added this to the 0.2.0 milestone Apr 25, 2024
@Arthurm1 Arthurm1 deleted the stderr_reporting branch April 25, 2024 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants