wp_handle_upload_error( $file,  $message )


Source

File: wp-admin/includes/file.php

		function wp_handle_upload_error( &$file, $message ) {
			return array( 'error' => $message );
		}