summaryrefslogtreecommitdiffstats
path: root/xmlrpc.php
diff options
context:
space:
mode:
Diffstat (limited to 'xmlrpc.php')
-rw-r--r--xmlrpc.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/xmlrpc.php b/xmlrpc.php
index e1d1b31..7e39687 100644
--- a/xmlrpc.php
+++ b/xmlrpc.php
@@ -1428,8 +1428,9 @@ class wp_xmlrpc_server extends IXR_Server {
$upload = wp_upload_bits($name, $type, $bits, $overwrite);
if ( ! empty($upload['error']) ) {
- logIO('O', '(MW) Could not write file '.$name);
- return new IXR_Error(500, 'Could not write file '.$name);
+ $errorString = 'Could not write file ' . $name . ' (' . $upload['error'] . ')';
+ logIO('O', '(MW) ' . $errorString);
+ return new IXR_Error(500, $errorString);
}
// Construct the attachment array
// attach to post_id -1