Skip to content

Commit

Permalink
Merge pull request #838 from ostelco/feature/bugfix-do-not-log-irrele…
Browse files Browse the repository at this point in the history
…vant-errors-when-pinging-smdp-plus

Flip a bit to fix a bug
  • Loading branch information
vihangpatil authored Sep 20, 2019
2 parents 743ac08 + e2a1c2e commit 258af3c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ data class ProfileVendorAdapter(
private fun getProfileStatusA(iccidList: List<String>, expectSuccess: Boolean): Either<SimManagerError, List<ProfileStatus>> {

fun logAndReturnNotFoundError(msg: String): Either<SimManagerError, List<ProfileStatus>> {
if (!expectSuccess) {
if (expectSuccess) {
Companion.logger.error(msg)
}
return NotFoundError(msg, pingOk = true).left()
Expand Down

0 comments on commit 258af3c

Please sign in to comment.