diff --git a/app/src/main/java/io/legado/app/service/HttpReadAloudService.kt b/app/src/main/java/io/legado/app/service/HttpReadAloudService.kt index d76b37998..a6bfefddf 100644 --- a/app/src/main/java/io/legado/app/service/HttpReadAloudService.kt +++ b/app/src/main/java/io/legado/app/service/HttpReadAloudService.kt @@ -145,13 +145,14 @@ class HttpReadAloudService : BaseReadAloudService(), downloadAudio() } catch (e: ConnectException) { removeSpeakCacheFile(fileName) - toastOnUi("tts接口网络错误") + toastOnUi("tts接口网络错误\n${e.localizedMessage}") } catch (e: IOException) { val file = getSpeakFileAsMd5(fileName) if (file.exists()) { FileUtils.deleteFile(file.absolutePath) } - toastOnUi("tts文件解析错误") + AppLog.put("tts文件解析错误") + toastOnUi("tts文件解析错误\n${e.localizedMessage}") } catch (e: Exception) { removeSpeakCacheFile(fileName) createSpeakFileAsMd5IfNotExist(fileName) diff --git a/app/src/main/java/io/legado/app/ui/login/SourceLoginDialog.kt b/app/src/main/java/io/legado/app/ui/login/SourceLoginDialog.kt index 99e9758d2..7b00a3410 100644 --- a/app/src/main/java/io/legado/app/ui/login/SourceLoginDialog.kt +++ b/app/src/main/java/io/legado/app/ui/login/SourceLoginDialog.kt @@ -122,7 +122,7 @@ class SourceLoginDialog : BaseDialogFragment(R.layout.dialog_login) { } } catch (e: Exception) { AppLog.put("登录出错\n${e.localizedMessage}", e) - context?.toastOnUi("error:${e.localizedMessage}") + context?.toastOnUi("登录出错\n${e.localizedMessage}") e.printOnDebug() } }