|
@@ -79,7 +79,14 @@ final class Client {
|
|
|
'json' => $prospectus->toPostParams(),
|
|
|
]
|
|
|
);
|
|
|
- var_dump($ret->getContent(false));
|
|
|
+ try {
|
|
|
+ $ret->getContent();
|
|
|
+ return true;
|
|
|
+ } catch (\Exception $e) {
|
|
|
+ $content = $ret->getContent(false);
|
|
|
+ throw new \InvalidArgumentException(!empty($content) ? $content : $e->getMessage(), $e->getCode(), $e);
|
|
|
+ }
|
|
|
+
|
|
|
return false;
|
|
|
}
|
|
|
}
|