mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-23 10:50:58 +00:00
Print the error message before the state dump.
Normally, the order doesn't matter, but when tracing code, it becomes very difficult to tell where the trace ends and the dump begins. Printing the message first puts the message between the trace and the dump: much easier :)
This commit is contained in:
parent
d6ec944e5f
commit
11b991cf9d
1 changed files with 2 additions and 2 deletions
|
@ -62,10 +62,10 @@ PR_RunError (progs_t * pr, const char *error, ...)
|
|||
dvsprintf (string, error, argptr);
|
||||
va_end (argptr);
|
||||
|
||||
PR_DumpState (pr);
|
||||
|
||||
Sys_Printf ("%s\n", string->str);
|
||||
|
||||
PR_DumpState (pr);
|
||||
|
||||
// dump the stack so PR_Error can shutdown functions
|
||||
pr->pr_depth = 0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue