Skip to content

Commit ad9f165

Browse files
authored
[FIX] unknown error handling crashed
1 parent a9a8d1a commit ad9f165

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Handler/SynologyChatHandler.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ protected function write(array $record) : void {
6767
if (!$responseBody->success) {
6868

6969
if (!is_iterable($responseBody->error->errors)) {
70-
Log::info("Error in SynoChat:");
71-
Log::info($responseBody->error);
70+
Log::info("Error in SynoChat: ".$responseBody->error->code);
7271
} else {
7372
Log::info("Error ".$responseBody->error->code." connecting to SynoChat API : ".$responseBody->error->errors);
7473
if (in_array($responseBody->error->code, [404, 105])) {

0 commit comments

Comments
 (0)