Skip to content

Commit

Permalink
fix(ocpi-2.2.1) throw OcpiServerUnusableApiException when cannot acce…
Browse files Browse the repository at this point in the history
…ss to client's server
  • Loading branch information
andacata authored and lilgallon committed Dec 28, 2023
1 parent 34c9d63 commit 81dc58d
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ class CredentialsServerService(
if (it.status != HttpStatus.OK) {
throw OcpiServerUnusableApiException(
"Could not get version of sender, there was an error in the response code: " +
"URL='${credentials.url}', HttpStatus=${it.status.code}"
"URL='${credentials.url}', HttpStatus=${it.status.code}"
)
}
}
Expand All @@ -149,7 +149,7 @@ class CredentialsServerService(
.onFailure {
throw OcpiServerUnusableApiException(
"Could not get versions of sender, there was an error parsing the response: " +
"URL='${credentials.url}', error='${it.message}'"
"URL='${credentials.url}', error='${it.message}'"
)
}
.getOrThrow()
Expand Down Expand Up @@ -181,7 +181,7 @@ class CredentialsServerService(
if (it.status != HttpStatus.OK) {
throw OcpiServerUnusableApiException(
"Could not get version of sender, there was an error in the response code: " +
"URL='${matchingVersion.url}', HttpStatus=${it.status.code}"
"URL='${matchingVersion.url}', HttpStatus=${it.status.code}"
)
}
}
Expand All @@ -191,7 +191,7 @@ class CredentialsServerService(
.onFailure {
throw OcpiServerUnusableApiException(
"Could not get version of sender, there was an error parsing the response: " +
"URL='${matchingVersion.url}', error='${it.message}'"
"URL='${matchingVersion.url}', error='${it.message}'"
)
}
.getOrThrow()
Expand Down

0 comments on commit 81dc58d

Please sign in to comment.