We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc2b2e0 commit 27d42d4Copy full SHA for 27d42d4
1 file changed
src/main/kotlin/com/andrzejressel/onedrivecollector/bean/PrometheusCollectorBean.kt
@@ -30,8 +30,12 @@ class PrometheusCollectorBean(
30
31
val accountDrives = accounts.associateWith { account ->
32
val token = "Bearer ${account.accessToken}"
33
- val driveInfo = oneDriveClient.drive(token)
34
- driveInfo
+ try {
+ oneDriveClient.drive(token)
35
+ } catch (e: Exception) {
36
+ logger.error("Cannot get drive [${account.name}]", e)
37
+ throw RuntimeException("Cannot get drive [${account.name}]", e)
38
+ }
39
}
40
41
return listOf(
0 commit comments