WordPress.org

Make WordPress Core

Changeset 5055


Ignore:
Timestamp:
03/16/07 22:12:59 (7 years ago)
Author:
ryan
Message:

Improve error propagation from newMediaObject failure in xmlrpc.php. Props Daniel Jalkut (Red Sweater Software). fixes #3981 for 2.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.1/xmlrpc.php

    r4906 r5055  
    862862        $upload = wp_upload_bits($name, $type, $bits); 
    863863        if ( ! empty($upload['error']) ) { 
    864             logIO('O', '(MW) Could not write file '.$name); 
    865             return new IXR_Error(500, 'Could not write file '.$name); 
     864            $errorString = 'Could not write file ' . $name . ' (' . $upload['error'] . ')'; 
     865            logIO('O', '(MW) ' . $errorString); 
     866            return new IXR_Error(500, $errorString); 
    866867        } 
    867868        // Construct the attachment array 
Note: See TracChangeset for help on using the changeset viewer.