Skip to content

Commit

Permalink
Add better logging to readFile errors
Browse files Browse the repository at this point in the history
  • Loading branch information
MarmadileManteater committed Jan 12, 2025
1 parent f6fb7f5 commit 75e8f4e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,7 @@ class FreeTubeJavaScriptInterface {
jsCommunicator.resolve(promise, FileInputStream(file).bufferedReader().use { it.readText() })
}
} catch (ex: Exception) {
context.webView.consoleError(ex.stackTraceToString())
jsCommunicator.reject(promise, ex.stackTraceToString())
}
}
Expand Down Expand Up @@ -420,6 +421,7 @@ class FreeTubeJavaScriptInterface {
jsCommunicator.resolve(promise, "true")
}
} catch (ex: Exception) {
context.webView.consoleError(ex.stackTraceToString())
jsCommunicator.reject(promise, ex.stackTraceToString())
}
}
Expand Down

0 comments on commit 75e8f4e

Please sign in to comment.