changeset 2915:05d90815b0f9

xmlrpc: fault on save errors
author Johannes Berg <johannes AT sipsolutions DOT net>
date Sun, 28 Oct 2007 20:46:12 +0100
parents 25ee42ee758a
children 06547d7df727
files MoinMoin/xmlrpc/__init__.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/xmlrpc/__init__.py	Sun Oct 28 20:45:04 2007 +0100
+++ b/MoinMoin/xmlrpc/__init__.py	Sun Oct 28 20:46:12 2007 +0100
@@ -542,9 +542,9 @@
                 newtext = self._inlob(pagetext)
             msg = page.saveText(newtext, 0)
         except page.SaveError, msg:
-            pass
-        if _debug and msg:
-            sys.stderr.write("Msg: %s\n" % msg)
+            if _debug:
+                sys.stderr.write("Msg: %s\n" % msg)
+            return xmlrpclib.Fault(1, "%s" % msg)
 
         # Update pagelinks cache
         page.getPageLinks(self.request)