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

Use reportDiagnostics rather than throwing for known errors #5854

Merged
merged 50 commits into from
Feb 10, 2025

Conversation

JoshLove-msft
Copy link
Contributor

@JoshLove-msft JoshLove-msft commented Feb 4, 2025

Fixes #5743

Also removes use of singleton Logger as using global state is not a best practice for emitters.

@JoshLove-msft JoshLove-msft requested a review from m-nash as a code owner February 4, 2025 20:38
@microsoft-github-policy-service microsoft-github-policy-service bot added the emitter:client:csharp Issue for the C# client emitter: @typespec/http-client-csharp label Feb 4, 2025
@azure-sdk
Copy link
Collaborator

API change check

APIView has identified API level changes in this PR and created following API reviews.

@typespec/http-client-csharp

@JoshLove-msft JoshLove-msft added this pull request to the merge queue Feb 10, 2025
Merged via the queue into microsoft:main with commit 69e11cf Feb 10, 2025
21 checks passed
@JoshLove-msft JoshLove-msft deleted the use-report-diags branch February 10, 2025 21:18
dmnorc pushed a commit to dmnorc/typespec that referenced this pull request Feb 18, 2025
…t#5854)

Fixes microsoft#5743

Also removes use of singleton Logger as using global state is not a best
practice for emitters.

---------

Co-authored-by: Timothee Guerin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
emitter:client:csharp Issue for the C# client emitter: @typespec/http-client-csharp
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Scan the emitter to make sure we are only throwing for unknown failures
6 participants