Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Gentoo Development (http://www.linux-archive.org/gentoo-development/)
-   -   log kickstart errors (http://www.linux-archive.org/gentoo-development/597068-log-kickstart-errors.html)

Vratislav Podzimek 11-11-2011 11:38 AM

log kickstart errors
 
---
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@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


All times are GMT. The time now is 07:18 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.