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

Do not print red success message #23210

Merged
merged 1 commit into from
Aug 30, 2021
Merged

Do not print red success message #23210

merged 1 commit into from
Aug 30, 2021

Conversation

heaths
Copy link
Member

@heaths heaths commented Aug 9, 2021

Fixes #22347

Console.ForegroundColor = ConsoleColor.Red;

Console.Error.WriteLine(e.ToString());
WriteError(e.ToString());
Copy link
Member Author

Choose a reason for hiding this comment

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

I realize this prints to stdout instead of stderr, but the error in the changes above also print to stdout. I don't see a clear reason why we should use stderr for a fatal error anyway. Not everyone knows how to redirect both stdout and stderr.

@pakrym
Copy link
Contributor

pakrym commented Aug 9, 2021

I think the code is being moved to https://github.com/Azure/azure-sdk-tools/tree/main/tools/snippet-generator

@pakrym
Copy link
Contributor

pakrym commented Aug 9, 2021

cc @chidozieononiwu

@jsquire
Copy link
Member

jsquire commented Aug 10, 2021

Thank you for this, @heaths!

@heaths
Copy link
Member Author

heaths commented Aug 30, 2021

Talked to @chidozieononiwu and it is being ported, but not in use yet. We could take this one, and I can port it to the new location so it's ready once he gets Azure/azure-sdk-tools deploying.

@heaths
Copy link
Member Author

heaths commented Aug 30, 2021

/azp run net - core - ci

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@heaths
Copy link
Member Author

heaths commented Aug 30, 2021

/check-enforcer evaluate

@heaths heaths merged commit 2214295 into Azure:main Aug 30, 2021
@heaths heaths deleted the issue22347 branch August 30, 2021 22:20
heaths added a commit to heaths/azure-sdk-tools that referenced this pull request Aug 30, 2021
weshaggard pushed a commit to Azure/azure-sdk-tools that referenced this pull request Aug 31, 2021
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.

SnippetGenerator showing a red completion message is very misleading
4 participants