add error message, by error saving error message in state errors

This commit is contained in:
Dario 2020-12-01 08:47:55 +01:00
parent 406dc13412
commit 41fe1cabe2

View File

@ -248,10 +248,14 @@ class JsonRequestHandlerController extends AppController {
$stateErrorEntity->transaction_type_id = $transaction->getTransactionBody()->getTransactionTypeId();
$stateErrorEntity->message_json = $json;
$stateErrorsTable->save($stateErrorEntity);
} else {
$errorArray['user_error'] = "user with $pub not found";
$json = json_encode($errorArray);
}
return $this->returnJsonEncoded($json);
}
}
}