Replace expect usage with Result
This commit is contained in:
parent
9394a1ae52
commit
b3228ea6b5
11 changed files with 135 additions and 95 deletions
emgauwa-core/src
|
@ -1,3 +1,4 @@
|
|||
use emgauwa_lib::errors::EmgauwaError;
|
||||
use emgauwa_lib::{constants, utils};
|
||||
use serde_derive::Deserialize;
|
||||
|
||||
|
@ -51,6 +52,6 @@ impl Default for Logging {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn init() -> Settings {
|
||||
pub fn init() -> Result<Settings, EmgauwaError> {
|
||||
utils::load_settings("core", "CORE")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue