We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97d4e6b commit 2859853Copy full SHA for 2859853
src/main/kotlin/ktalex/dal/client/BaseClient.kt
@@ -85,7 +85,7 @@ abstract class BaseClient : AutoCloseable {
85
86
HttpStatusCode.Forbidden -> {
87
val error: ErrorResponse = response.body()
88
- error.message?.let { throw OpenAlexException(it) }
+ throw OpenAlexException(error.message ?: "Access forbidden by OpenAlex API")
89
}
90
91
else -> {
0 commit comments