How can you properly error handle errors that occur during application startup (tauri::Builder::default().run(tauri::generate_context!())) #9399
Unanswered
TalinTheDev
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I have set up logging with the tauri logging plugin and also made a simple custom logger for logging during application init (creating files and stuff). The custom logger is used for errors that happen before
.run
is called and then the plugin's logger is used everywhere else. I was wondering how I can manage and log errors that occur after.run
is called because in the docs and everywhere else, everyone seems to be using.expect
. From what I understand, after.run
is called, the main function goes into some sort of loop which is why a match statement or anything else after.run
isn't working. But is there some way to properly handle and log errors occuring during.run
?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions