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); } }