throw actual nami exception message when creating membership
This commit is contained in:
parent
94094aebcd
commit
c1e81b53f0
|
@ -147,7 +147,7 @@ class Api
|
||||||
$response = $this->http()->post($url, $data->toNami());
|
$response = $this->http()->post($url, $data->toNami());
|
||||||
}
|
}
|
||||||
if (true !== data_get($response->json(), 'success')) {
|
if (true !== data_get($response->json(), 'success')) {
|
||||||
$this->exception('Update failed', $url, $response->json(), $data->toArray());
|
$this->exception(data_get($response->json(), 'message', 'Update failed'), $url, $response->json(), $data->toArray());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (data_get($data, 'id')) {
|
if (data_get($data, 'id')) {
|
||||||
|
|
Loading…
Reference in New Issue