aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/lib
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2025-03-12 09:16:32 +0100
committerAndreas Gohr <andi@splitbrain.org>2025-03-12 09:16:32 +0100
commit5c3fa1237fed70959d8f7612243d02b0d8dd40d8 (patch)
tree409e3ea4cb82a9ee50730bbcd550114678fa5307 /lib
parentabf4130250187c87078040fe0f38454aef22447e (diff)
downloaddokuwiki-5c3fa1237fed70959d8f7612243d02b0d8dd40d8.tar.gz
dokuwiki-5c3fa1237fed70959d8f7612243d02b0d8dd40d8.zip
do not return zero error code for API exceptions. fixes #4413
Diffstat (limited to 'lib')
-rw-r--r--lib/exe/xmlrpc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/exe/xmlrpc.php b/lib/exe/xmlrpc.php
index 9fad90136..ff8317328 100644
--- a/lib/exe/xmlrpc.php
+++ b/lib/exe/xmlrpc.php
@@ -15,5 +15,5 @@ $server = new XmlRpcServer(true);
try {
$server->serve();
} catch (\Exception $e) {
- $server->error($e->getCode(), $e->getMessage());
+ $server->error($e->getCode() ?: 1, $e->getMessage());
}