Return Result from server main
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
use crate::App;
|
||||
use crate::util::error::{Error, Result};
|
||||
|
||||
pub fn main() {
|
||||
pub fn main() -> Result<()> {
|
||||
if let Err(e) = dotenvy::dotenv() {
|
||||
tracing::warn!("Error reading .env: {e}");
|
||||
}
|
||||
|
||||
dioxus::launch(App);
|
||||
|
||||
Err(Error::message_here("Web server exited"))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user