mod default error for creating membership
This commit is contained in:
parent
b1da07e828
commit
8cf7bd2cf2
|
@ -147,7 +147,8 @@ 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(data_get($response->json(), 'message', 'Update failed'), $url, $response->json(), $data->toArray());
|
$defaultError = 'Erstellen der Mitgliedschaft fehlgeschlagen';
|
||||||
|
$this->exception(data_get($response->json(), 'message', $defaultError) ?: $defaultError, $url, $response->json(), $data->toArray());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (data_get($data, 'id')) {
|
if (data_get($data, 'id')) {
|
||||||
|
|
Loading…
Reference in New Issue