Runtime errors in Python scripts were not being shown; this fix makes them print out to ease correcting errors
llvm-svn: 135395
diff --git a/lldb/scripts/lldb.swig b/lldb/scripts/lldb.swig
index 4da0014..6991ba1 100644
--- a/lldb/scripts/lldb.swig
+++ b/lldb/scripts/lldb.swig
@@ -463,22 +463,26 @@
}
else if (PyErr_Occurred ())
{
+ PyErr_Print();
PyErr_Clear();
}
Py_INCREF (session_dict);
}
else if (PyErr_Occurred())
{
+ PyErr_Print();
PyErr_Clear();
}
}
else if (PyErr_Occurred())
{
+ PyErr_Print();
PyErr_Clear();
}
}
else if (PyErr_Occurred ())
{
+ PyErr_Print();
PyErr_Clear ();
}
return retval;