Skip to content

Commit

Permalink
简单优化 ApiResultException 的异常信息提示
Browse files Browse the repository at this point in the history
  • Loading branch information
ForteScarlet committed Dec 28, 2023
1 parent e1c827a commit 70b3604
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/P.kt
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ object P : ProjectDetail() {
0, 0
)

private val alphaSuffix = v("beta1")
private val alphaSuffix = v("beta2")

override val version: Version = baseVersion - alphaSuffix

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ public abstract class KookApi<T> : API<KookApiRequestor, T>, PlatformKookApi<T>(
val result = requestResult(client, authorization)

if (!result.isSuccess) {
throw ApiResultException(result, "result.code is not success(${result.code})")
throw ApiResultException(result, "result.code is not success ($result)")
}

if (resultDeserializer == Unit.serializer()) {
Expand Down

0 comments on commit 70b3604

Please sign in to comment.