Skip to content

Mensaje de advertencia notificado como error #26

Answered by daniel89fg
daniel89fg asked this question in Q&A
Discussion options

You must be logged in to vote

Vale, perfecto.

Vamos a cambiar el if que tenemos:

if ($response->status() != 200 || false === $response->isDelivered() || false === $response->isCorrect()) {
    ToolBox::i18nLog()->warning('ticketbai-response-not-ok', ['%status%' => $response->mainErrorMessage()]);
    return false;
}

por algo así:

if ($response->status() != 200) {
    ToolBox::i18nLog()->warning('ticketbai-response-not-ok', ['%status%' => $response->mainErrorMessage()]);
    return false;
}

if (false === $response->isDelivered() || false === $response->isCorrect()) {
    ToolBox::i18nLog()->warning('ticketbai-response-not-ok', ['%status%' => $response->mainErrorMessage()]);
}

$qr = new Qr($this->ticketbai, $debugMod…

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@arraintxo
Comment options

Answer selected by arraintxo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants