mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-23 12:22:42 +00:00
run errors are better now.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@402 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
8d7f132afc
commit
53ffe9c50e
1 changed files with 4 additions and 2 deletions
|
@ -198,16 +198,18 @@ void VARGS PR_RunError (progfuncs_t *progfuncs, char *error, ...)
|
||||||
Q_vsnprintf (string,sizeof(string)-1, error,argptr);
|
Q_vsnprintf (string,sizeof(string)-1, error,argptr);
|
||||||
va_end (argptr);
|
va_end (argptr);
|
||||||
|
|
||||||
|
SV_EndRedirect();
|
||||||
|
|
||||||
// PR_PrintStatement (pr_statements + pr_xstatement);
|
// PR_PrintStatement (pr_statements + pr_xstatement);
|
||||||
PR_StackTrace (progfuncs);
|
PR_StackTrace (progfuncs);
|
||||||
printf ("%s\n", string);
|
printf ("\n");
|
||||||
|
|
||||||
//editbadfile(pr_strings + pr_xfunction->s_file, -1);
|
//editbadfile(pr_strings + pr_xfunction->s_file, -1);
|
||||||
|
|
||||||
pr_depth = 0; // dump the stack so host_error can shutdown functions
|
pr_depth = 0; // dump the stack so host_error can shutdown functions
|
||||||
prinst->exitdepth = 0;
|
prinst->exitdepth = 0;
|
||||||
|
|
||||||
Abort ("Program error");
|
Abort (string);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue