show reasons for bsodFatal
authorFelix Domke <tmbinc@elitedvb.net>
Tue, 13 Nov 2007 12:12:00 +0000 (12:12 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Tue, 13 Nov 2007 12:12:00 +0000 (12:12 +0000)
lib/python/python.cpp
main/enigma.cpp

index 5ec07dff50d0b7e7d54aecb92c43d561b3c6a14f..8e9fbd7e18b1b1bbd46f9ecbb3f38c48394b1664 100644 (file)
@@ -188,6 +188,7 @@ int ePython::call(ePyObject pFunc, ePyObject pArgs)
                } else
                {
                        PyErr_Print();
+                       eDebug("(PyObject_CallObject failed)");
                        bsodFatal();
                }
        }
index 631a3fb25561c4d56ae2430546b0080bab2ba64e..72087c92144655f63cf6f2b981c92859cdece004 100644 (file)
@@ -20,7 +20,7 @@
 #include <lib/gdi/sdl.h>
 #endif
 #include <lib/gdi/epng.h>
-#include <lib/gdi/font.h> 
+#include <lib/gdi/font.h>
 #include <lib/gui/ebutton.h>
 #include <lib/gui/elabel.h>
 #include <lib/gui/elistboxcontent.h>
@@ -30,7 +30,7 @@
 #include <lib/python/connections.h>
 #include <lib/python/python.h>
 
-#include "bsod.h" 
+#include "bsod.h"
 
 #ifdef HAVE_GSTREAMER
 #include <gst/gst.h>
@@ -246,7 +246,10 @@ int main(int argc, char **argv)
        python.execute("mytest", "__main__");
        
        if (exit_code == 5) /* python crash */
+       {
+               eDebug("(exit code 5)");
                bsodFatal();
+       }
        
        dsk.paint();
        dsk_lcd.paint();