Skip to content

Commit

Permalink
1.0.100
Browse files Browse the repository at this point in the history
* [+] Pre Curl Release
* [*] empty Longread return result
  • Loading branch information
KarelWintersky committed Aug 9, 2022
1 parent e6fedb5 commit f184be0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sources/Longreads.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit f184be0

Please sign in to comment.