pike.git/
src/
error.c
Branch:
Tag:
Non-build tags
All tags
No tags
1999-08-25
1999-08-25 05:06:33 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>
05756c09b60f41c4fb47310463d2a9918837fb7c (
15
lines) (+
14
/-
1
)
[
Show
|
Annotate
]
Branch:
7.9
now dumps raw error when an error occurs in handle_error
Rev: src/error.c:1.37
19:
#include "module_support.h" #include "threads.h"
-
RCSID("$Id: error.c,v 1.
36
1999/
07
/
27
21
:
40
:
43
grubba
Exp $");
+
RCSID("$Id: error.c,v 1.
37
1999/
08
/
25
05
:
06
:
33
hubbe
Exp $");
#undef ATTRIBUTE #define ATTRIBUTE(X)
218:
void exit_on_error(void *msg) {
+
fprintf(stderr,"%s\n",(char *)msg);
#ifdef PIKE_DEBUG dump_backlog(); #endif fprintf(stderr,"%s\n",(char *)msg);
-
+
#ifdef PIKE_DEBUG
+
{
+
char *s;
+
fprintf(stderr,"Attempting to dump raw error: (may fail)\n");
+
init_buf();
+
describe_svalue(&throw_value,0,0);
+
s=simple_free_buf();
+
fprintf(stderr,"%s\n",s);
+
free(s);
+
}
+
#endif
exit(1); }