Fault Strings

Brad Douglas <[email protected]> Sun, 21 Apr 2002 01:28:25 -0700 (PDT)
Newsgroups gmane.comp.gnome.ximian.soup
Message-ID <[email protected]>
I'm trying to extract the fault string from a server 
response (on error).  The following code *should* work, 
shouldn't it?  I keep getting back NULL for 'fault'.  
What am I doing wrong?


if (SOUP_MESSAGE_IS_ERROR(msg)) {
	SoupFault	*fault;
	const guchar	*string;

	fault = soup_parser_get_fault(parser);
	string = soup_fault_get_string(fault);

	g_warning("SOUP Error: %d \"%s\": %s\n",
			msg->errorcode,
			msg->errorphrase,
			string);

	soup_parser_free(parser);

	return FALSE;
}


Thanks,

Brad Douglas
[email protected]


_______________________________________________
Soup-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/soup-list