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:
Bill Currie 2012-12-16 12:27:15 +09:00
parent d6ec944e5f
commit 11b991cf9d

View file

@ -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;