throw actual nami exception message when creating membership

This commit is contained in:
philipp lang 2022-11-10 23:29:04 +01:00
parent 94094aebcd
commit c1e81b53f0
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ class Api
$response = $this->http()->post($url, $data->toNami());
}
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')) {