Skip to content

Commit 987e094

Browse files
author
mwatson
committed
Fix missing error message
1 parent f1824ba commit 987e094

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Src/StackifyLib.log4net/StackifyAppender.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,11 +234,11 @@ internal LogMsg Translate(LoggingEvent loggingEvent)
234234
//try to serialize the messageObject since we know its not a string
235235
msg.data = StackifyLib.Utils.HelperFunctions.SerializeDebugData(messageObject, false, diags);
236236
msg.Msg = loggingEvent.RenderedMessage;
237+
}
237238

238-
if (error != null)
239-
{
240-
msg.Msg += "\r\n" + error.ToString();
241-
}
239+
if (error != null)
240+
{
241+
msg.Msg += "\r\n" + error.ToString();
242242
}
243243

244244
if (!string.IsNullOrWhiteSpace(errorAdditionalMessage) && error != null)

0 commit comments

Comments
 (0)