|
@@ -60,7 +60,7 @@ discard block |
|
|
block discarded – undo |
|
60
|
60
|
} catch (\Paylike\Exception\InvalidRequest $e) { |
|
61
|
61
|
// Bad (invalid) request - see $e->getJsonBody() for the error |
|
62
|
62
|
$data['exception_class'] = "\Paylike\Exception\InvalidRequest"; |
|
63
|
|
- $data['message'] = "Bad (invalid) request - " . substr(json_encode($e->getJsonBody()), 0, 250); |
|
|
63
|
+ $data['message'] = "Bad (invalid) request - ".substr(json_encode($e->getJsonBody()), 0, 250); |
|
64
|
64
|
} catch (\Paylike\Exception\Forbidden $e) { |
|
65
|
65
|
// You are correctly authenticated but do not have access. |
|
66
|
66
|
$data['exception_class'] = "\Paylike\Exception\Forbidden"; |
|
@@ -79,7 +79,7 @@ discard block |
|
|
block discarded – undo |
|
79
|
79
|
$data['message'] = "Network error on connecting via cURL"; |
|
80
|
80
|
} catch (\Paylike\Exception\ApiException $e) { |
|
81
|
81
|
$data['exception_class'] = "\Paylike\Exception\ApiException"; |
|
82
|
|
- $data['message'] = "Api Error:" . $e->getMessage(); |
|
|
82
|
+ $data['message'] = "Api Error:".$e->getMessage(); |
|
83
|
83
|
} |
|
84
|
84
|
|
|
85
|
85
|
return $data; |
Please login to merge, or discard this patch.