diff --git a/app/src/main/java/com/github/miwu/logic/repository/AppRepository.kt b/app/src/main/java/com/github/miwu/logic/repository/AppRepository.kt index 6dac5e3..888a531 100644 --- a/app/src/main/java/com/github/miwu/logic/repository/AppRepository.kt +++ b/app/src/main/java/com/github/miwu/logic/repository/AppRepository.kt @@ -163,8 +163,8 @@ object AppRepository { _sceneFlow.emit(scenes) } } - }.onFailure { - "加载情景失败".toast() + }.onFailure { error -> + "加载情景失败\${error.toString()}\${error.message}".toast() }.onNull { "加载情景失败".toast() }.onEach { @@ -215,4 +215,4 @@ object AppRepository { } } } -} \ No newline at end of file +}