feat: print error log
This commit is contained in:
@@ -114,7 +114,9 @@ async fn main() -> tide::Result<()> {
|
||||
});
|
||||
|
||||
information!("Write email to account config: {:?}", account_email);
|
||||
fs::write(account_email, email);
|
||||
if let Err(e) = fs::write(&account_email, email) {
|
||||
warning!("Write email to account config: {:?}, failed: {}", account_email, e);
|
||||
}
|
||||
|
||||
email.to_string()
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user