dotnet-sdk icon indicating copy to clipboard operation
dotnet-sdk copied to clipboard

Remove html codes from exception outputs

Open paulc-fugro opened this issue 9 months ago • 0 comments

Checklist

Describe the problem you'd like to have solved

I'm using the "dotnet" command in a Linux terminal to build and run my application. On an exception, I get the following example output:

Failed due to: One or more errors occurred. (cannot write a tuple which already exists: user: 'user:paul', relation: 'operator', object: 'client:eql': invalid write input)

The control codes makes it difficult to read in the terminal. I missed the actual error until I removed the codes.

This is output is probably designed for Visual Studio, and so probably is invisible to Windows users.

Describe the ideal solution

Remove the controls code and replace them with quote characters.

Not sure if Visual Studio can display straight quotes. I assume this was implemented for a reason.

Alternatives and current workarounds

run:

$ dotnet run | htmltotext

not a great solution since it removes line formatting.

References

No response

Additional context

No response

paulc-fugro avatar May 13 '24 01:05 paulc-fugro