Skip to content

Commit

Permalink
fix: Write error info when thread tracing disabled (#245)
Browse files Browse the repository at this point in the history
Error class and message are not being set for errors when thread tracing
is disabled leading to the error class being set to the default "Exception"
and error message being empty. This change ensures that error class
and message are set regardless of the setting.
 
Fixes regression introduced in f62ca6e
  • Loading branch information
fractalwrench authored and kattrali committed Feb 21, 2018
1 parent 8e96941 commit 4fb5aea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/KSCrash/Source/KSCrash/Recording/BSG_KSCrashReport.c
Original file line number Diff line number Diff line change
Expand Up @@ -2084,9 +2084,9 @@ void bsg_kscrashreport_writeStandardReport(
crashContext->config.introspectionRules.enabled,
crashContext->config.searchThreadNames,
crashContext->config.searchQueueNames);
bsg_kscrw_i_writeError(writer, BSG_KSCrashField_Error,
&crashContext->crash);
}
bsg_kscrw_i_writeError(writer, BSG_KSCrashField_Error,
&crashContext->crash);
}
writer->endContainer(writer);

Expand Down

0 comments on commit 4fb5aea

Please sign in to comment.