Changeset

1591:aaa1bcb7af98

mod_xmlrpc: Remove file and line number from XML-RPC errors
author Waqas Hussain <waqas20@gmail.com>
date Sat, 25 Jul 2009 19:58:24 +0500
parents 1590:638761692663
children 1592:a7c140fc672b
files plugins/mod_xmlrpc.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_xmlrpc.lua	Sat Jul 25 19:46:17 2009 +0500
+++ b/plugins/mod_xmlrpc.lua	Sat Jul 25 19:58:24 2009 +0500
@@ -83,7 +83,7 @@
 		end
 		return create_error_response(500, "Error in creating response: "..result);
 	end
-	return create_error_response(0, result or "nil");
+	return create_error_response(0, (result and result:gmatch("[^:]*:[^:]*: (.*)")()) or "nil");
 end
 
 local function handle_xmpp_request(origin, stanza)