]> git.mxchange.org Git - friendica-addons.git/commitdiff
[twitter] Fix media upload failure logging
authorHypolite Petovan <hypolite@mrpetovan.com>
Fri, 3 Jul 2020 15:06:40 +0000 (11:06 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Fri, 3 Jul 2020 15:06:40 +0000 (11:06 -0400)
- Address https://github.com/friendica/friendica/issues/8473#issuecomment-653332270

twitter/twitter.php

index 606d9c58dc53ba99f5b01efdc0ddf868d93cd309..4c9701d844a3bfdfdd0bd6f34f1b55fd4dae518d 100644 (file)
@@ -693,7 +693,8 @@ function twitter_post_hook(App $a, array &$b)
                                                        Logger::info('Metadata create', ['id' => $b['id'], 'data' => $data, 'return' => json_encode($ret)]);
                                                }
                                        } else {
-                                               throw new Exception('Failed upload', ['id' => $b['id'], 'image' => $image['url']]);
+                                               Logger::error('Failed upload', ['id' => $b['id'], 'image' => $image['url']]);
+                                               throw new Exception('Failed upload of ' . $image['url']);
                                        }
                                }
                                $post['media_ids'] = implode(',', $media_ids);