Skip to content

Commit e22329b

Browse files
committed
use existing error
1 parent fc6c099 commit e22329b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/sync/class-download-sync.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public function handle_failed_download( $attachment_id, $error ) {
9494
$is_pending = $this->plugin->components['media']->get_post_meta( $attachment_id, Sync::META_KEYS['pending'], true );
9595
if ( ! empty( $is_pending ) ) {
9696
// Dont delete if it's a downsync.
97-
$this->plugin->components['media']->update_post_meta( $attachment_id, Sync::META_KEYS['sync_error'], __( 'Could not download asset', 'cloudinary' ) );
97+
$this->plugin->components['media']->update_post_meta( $attachment_id, Sync::META_KEYS['sync_error'], $error );
9898
} else {
9999
// Delete attachment temp.
100100
wp_delete_attachment( $attachment_id, true );

0 commit comments

Comments
 (0)