From a352eedba61b1a74b91db4005f7d9a24f8ac2848 Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Tue, 13 Nov 2007 12:12:00 +0000 Subject: [PATCH] show reasons for bsodFatal --- lib/python/python.cpp | 1 + main/enigma.cpp | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/python/python.cpp b/lib/python/python.cpp index 5ec07dff..8e9fbd7e 100644 --- a/lib/python/python.cpp +++ b/lib/python/python.cpp @@ -188,6 +188,7 @@ int ePython::call(ePyObject pFunc, ePyObject pArgs) } else { PyErr_Print(); + eDebug("(PyObject_CallObject failed)"); bsodFatal(); } } diff --git a/main/enigma.cpp b/main/enigma.cpp index 631a3fb2..72087c92 100644 --- a/main/enigma.cpp +++ b/main/enigma.cpp @@ -20,7 +20,7 @@ #include #endif #include -#include +#include #include #include #include @@ -30,7 +30,7 @@ #include #include -#include "bsod.h" +#include "bsod.h" #ifdef HAVE_GSTREAMER #include @@ -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(); -- 2.30.2