[PATCH 1/3] log kickstart errors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 loader/kickstart.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/loader/kickstart.c b/loader/kickstart.c
index 320dfb3..f346771 100644
--- a/loader/kickstart.c
+++ b/loader/kickstart.c
@@ -165,15 +165,18 @@ static PyObject *makeParser(PyObject *parserClass, PyObject *handler) {
 
 static void handleException() {
     PyObject *ptype, *pvalue, *ptraceback;
+    char *error_str = NULL;
 
     if (!PyErr_Occurred())
         return;
 
     PyErr_Fetch(&ptype, &pvalue, &ptraceback);
 
+    error_str = PyString_AsString(PyObject_Str(pvalue));
+    logMessage(ERROR, "Kickstart Error: %s", error_str);
     startNewt();
     newtWinMessage(_("Kickstart Error"), _("OK"),
-                   PyString_AsString(PyObject_Str(pvalue)));
+                   error_str);
 
     Py_XDECREF(ptype);
     Py_XDECREF(pvalue);
-- 
1.7.4.4

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux