From f184be0160e6bae321b35a18e8577ba657d3126e Mon Sep 17 00:00:00 2001 From: Karel Wintersky Date: Tue, 9 Aug 2022 23:46:31 +0300 Subject: [PATCH] 1.0.100 * [+] Pre Curl Release * [*] empty Longread return result --- sources/Longreads.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sources/Longreads.php b/sources/Longreads.php index 8ccfa5d..33e1e0a 100644 --- a/sources/Longreads.php +++ b/sources/Longreads.php @@ -682,7 +682,11 @@ public function getPageFullExport($id, $associative = null) } catch (RuntimeException $e) { $this->logger->debug($e->getMessage(), [ $e->getCode(), $url ]); - return $associative ? [] : new LongreadError($e->getMessage(), $curl->error_code, $url); + return $associative ? [ + 'status' => 'ERROR', + 'message' => $e->getMessage(), + 'errorside' => 'info' + ] : new LongreadError($e->getMessage(), $curl->error_code, $url); } }