YamlException overrides ToString(), but doesn't include the stacktrace.
This is causing the stderr printout to not include the stacktrace when a SyntaxErrorException gets thrown during deserialization
If I change the line to
return $"({Start}) - ({End}): {Message}\n{StackTrace}";
it prints as expected
Although, i think the better solution is to not override ToString(), then update any logic that relies on the message format to use this instead
public string ToMessage()
{
return $"({Start}) - ({End}): {Message}";
}
YamlException overrides
ToString(), but doesn't include the stacktrace.This is causing the stderr printout to not include the stacktrace when a
SyntaxErrorExceptiongets thrown during deserializationIf I change the line to
it prints as expected
Although, i think the better solution is to not override
ToString(), then update any logic that relies on the message format to use this instead