diff --git a/src/Api.php b/src/Api.php index 4a0f70c..5394220 100644 --- a/src/Api.php +++ b/src/Api.php @@ -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')) {