From 71a2a024ccdc484f7c7118bb06b92fff9097c3bf Mon Sep 17 00:00:00 2001 From: Andrew Chin Date: Sat, 26 Mar 2011 00:06:24 -0400 Subject: [PATCH] Print tracebacks on error --- src/iterate.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/iterate.c b/src/iterate.c index f535f39..6f2b02b 100644 --- a/src/iterate.c +++ b/src/iterate.c @@ -35,6 +35,7 @@ int init_chunk_render(void) { /* ensure none of these pointers are NULL */ if ((!textures)) { fprintf(stderr, "\ninit_chunk_render failed to load; textures\n"); + PyErr_Print(); return 1; } @@ -42,6 +43,7 @@ int init_chunk_render(void) { /* ensure none of these pointers are NULL */ if ((!chunk_mod)) { fprintf(stderr, "\ninit_chunk_render failed to load; chunk\n"); + PyErr_Print(); return 1; } @@ -53,6 +55,7 @@ int init_chunk_render(void) { /* ensure none of these pointers are NULL */ if ((!transparent_blocks) || (!blockmap) || (!special_blocks) || (!specialblockmap)) { fprintf(stderr, "\ninit_chunk_render failed\n"); + PyErr_Print(); return 1; }