Skip to content

Commit

Permalink
Move Error Int3 to after printing the message
Browse files Browse the repository at this point in the history
  • Loading branch information
vLKp committed Dec 9, 2014
1 parent 84011e5 commit a270317
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions common/misc/error.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ void (Error_puts)(const char *func, const unsigned line, const char *str)
{
char exit_message[MAX_MSG_LEN]; // don't put the new line in for dialog output
int len = snprintf(exit_message, sizeof(exit_message), "%s:%u: error: %s", func, line, str);
Int3();
print_exit_message(exit_message, len);
d_debugbreak();
exit(1);
}

Expand All @@ -83,11 +83,8 @@ void (Error)(const char *func, const unsigned line, const char *fmt,...)
va_start(arglist,fmt);
int len = vsnprintf(exit_message+leader,sizeof(exit_message)-leader,fmt,arglist);
va_end(arglist);

Int3();

print_exit_message(exit_message, len);

d_debugbreak();
exit(1);
}

Expand Down

0 comments on commit a270317

Please sign in to comment.