forked from mirror/Part-DB.Part-DB-server
Include the JSON encoded response, when throwing an unknown response format in mouser provider
Should help to debug issue #820
This commit is contained in:
parent
f75704f77c
commit
6bdf3d891a
1 changed files with 1 additions and 1 deletions
|
@ -205,7 +205,7 @@ class MouserProvider implements InfoProviderInterface
|
|||
if (isset($arr['SearchResults'])) {
|
||||
$products = $arr['SearchResults']['Parts'] ?? [];
|
||||
} else {
|
||||
throw new \RuntimeException('Unknown response format');
|
||||
throw new \RuntimeException('Unknown response format: ' .json_encode($arr, JSON_THROW_ON_ERROR));
|
||||
}
|
||||
|
||||
$result = [];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue