mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-10 05:54:41 +02:00
fix(DisplayAction): improve error handling and cache logic (#3558)
* fix(DisplayAction): improve error handling and cache logic * restore prev timeouts * refactor * yup * test: fix unit test * leave twitter client unchanged * leave twitter bridge unchanged
This commit is contained in:
parent
38ca124de0
commit
74635fd752
4 changed files with 81 additions and 58 deletions
|
@ -51,11 +51,13 @@ function get_current_url(): string
|
|||
|
||||
function create_sane_exception_message(\Throwable $e): string
|
||||
{
|
||||
$sanitizedMessage = sanitize_root($e->getMessage());
|
||||
$sanitizedFilepath = sanitize_root($e->getFile());
|
||||
return sprintf(
|
||||
'%s: %s in %s line %s',
|
||||
get_class($e),
|
||||
sanitize_root($e->getMessage()),
|
||||
sanitize_root($e->getFile()),
|
||||
$sanitizedMessage,
|
||||
$sanitizedFilepath,
|
||||
$e->getLine()
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue