Skip to content

Commit eade5c9

Browse files
committed
fix
1 parent c43b180 commit eade5c9

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/main/kotlin/com/github/zly2006/xbackup/XBackup.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ object XBackup : ModInitializer {
4242
private val configPath = FabricLoader.getInstance().configDir.resolve("x-backup.config.json")
4343
val log = LoggerFactory.getLogger("XBackup")!!
4444
const val MOD_VERSION = /*$ mod_version*/ "0.3.8-pre.1"
45-
const val GIT_COMMIT = /*$ git_commit*/ "3527deb"
46-
const val COMMIT_DATE = /*$ commit_date*/ "2024-12-21T15:51:36+08:00"
45+
const val GIT_COMMIT = /*$ git_commit*/ "c43b180"
46+
const val COMMIT_DATE = /*$ commit_date*/ "2024-12-21T18:00:51+08:00"
4747
lateinit var service: BackupDatabaseService
4848
lateinit var server: MinecraftServer
4949

src/main/kotlin/com/github/zly2006/xbackup/cloud/OnedriveSupport.kt

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import com.github.zly2006.xbackup.api.XBackupKotlinAsyncApi
66
import io.ktor.client.*
77
import io.ktor.client.call.*
88
import io.ktor.client.request.*
9+
import io.ktor.client.statement.bodyAsText
910
import io.ktor.http.*
1011
import io.ktor.util.*
1112
import io.ktor.util.cio.*
@@ -113,7 +114,7 @@ class OnedriveSupport(
113114
)
114115
}
115116
require(response.status.isSuccess()) {
116-
"Failed to get upload session: ${response.status}"
117+
"Failed to get upload session: ${response.status}\n${response.bodyAsText()}"
117118
}
118119
log.info("Received upload session from reden api")
119120
response.body<JsonObject>()

0 commit comments

Comments
 (0)