FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo Development

 
 
LinkBack Thread Tools
 
Old 11-11-2011, 11:38 AM
Vratislav Podzimek
 
Default 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
 

Thread Tools




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

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org