Try to fix CI

This commit is contained in:
Karlatemp 2022-04-09 15:27:33 +08:00
parent fd2663e60c
commit efd864449e
No known key found for this signature in database
GPG Key ID: C6B606FF23D8FED7
2 changed files with 4 additions and 1 deletions

View File

@ -43,6 +43,7 @@ jobs:
-Dmirai.network.show.all.components=true
-Dkotlinx.coroutines.debug=on
-Dmirai.network.show.packet.details=true
-Dmirai.network.handle.selector.logging=true
- run: >
./gradlew publish --info --scan

View File

@ -100,7 +100,9 @@ internal abstract class AbstractKeepAliveNetworkHandlerSelector<H : NetworkHandl
if (current.context[SsoProcessor].firstLoginResult.value?.canRecoverOnFirstLogin == false) {
// == null 只表示
// == false 表示第一次登录失败, 且此失败没必要重试
throw current.getLastFailure() ?: error("Failed to login with unknown reason.")
logIfEnabled { "[FIRST LOGIN ERROR] current = $current" }
logIfEnabled { "[FIRST LOGIN ERROR] current.state = ${current.state}" }
throw current.getLastFailure() ?: exceptionCollector.getLast() ?: error("Failed to login with unknown reason.")
}
}