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

Add transform logSuggestionForFailureResponse #483

Merged
merged 1 commit into from
Oct 8, 2024

Conversation

JiayuW2
Copy link
Contributor

@JiayuW2 JiayuW2 commented Oct 7, 2024

Problem

Following up comments on this PR: #476
There are probably other places where we log some suggestion after a failure message.

Solution

Addressed comments on the above mentioned PR. Rephrase the suggestion message and put it into a function.

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@JiayuW2 JiayuW2 requested review from a team as code owners October 7, 2024 18:05
let suggestion = ''
if (reason.toLowerCase().includes('build validation failed')) {
suggestion =
'Please close Visual Studio, delete the directories where build artifacts are generated (e.g. bin and obj), and try running the transformation again.'
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we expect this server to be only used in visual studio and no other IDE? Otherwise I would reword this to Please close your IDE

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it's only used in visual studio.

@JiayuW2 JiayuW2 merged commit 04343a2 into main Oct 8, 2024
5 checks passed
@JiayuW2 JiayuW2 deleted the transform-logging-failure branch October 8, 2024 18:12
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.

4 participants