Fixed that if alsoRetrieveBalance is set to false or account doesn't support retrieving balance execution stops here forever and never returns

This commit is contained in:
dankito 2020-09-23 03:46:48 +02:00
parent dee6f4aebe
commit c7d6718cce
1 changed files with 4 additions and 0 deletions

View File

@ -423,6 +423,10 @@ open class FinTsClient(
callback(response)
}
}
else {
callback(BankResponse(false, errorMessage = "Either not requested to get balance or account does not support retrieving balance. " +
"Should retrieve balance = ${parameter.alsoRetrieveBalance}, account supports retrieving balance = ${parameter.account.supportsRetrievingBalance}."))
}
}