mirror of
https://github.com/anthonyaxenov/atol-online.git
synced 2024-11-22 20:54:34 +00:00
Фикс выброса AtolAuthFailedException
This commit is contained in:
parent
387e6e445f
commit
d321205ac9
@ -33,7 +33,7 @@ class AtolAuthFailedException extends Exception
|
|||||||
$message = $last_response->isValid()
|
$message = $last_response->isValid()
|
||||||
? $message
|
? $message
|
||||||
: '['.$last_response->error->code.'] '.$last_response->error->text.
|
: '['.$last_response->error->code.'] '.$last_response->error->text.
|
||||||
'. ERROR_ID: '.$last_response->error->error_ID.
|
'. ERROR_ID: '.$last_response->error->error_id.
|
||||||
'. TYPE: '.$last_response->error->type;
|
'. TYPE: '.$last_response->error->type;
|
||||||
$code = $last_response->isValid() ? $code : $last_response->error->code;
|
$code = $last_response->isValid() ? $code : $last_response->error->code;
|
||||||
parent::__construct($message, $code, $previous);
|
parent::__construct($message, $code, $previous);
|
||||||
|
Loading…
Reference in New Issue
Block a user