feat: print error log

This commit is contained in:
2021-05-05 15:13:21 +08:00
parent 00d5dc9d09
commit 2f8f5d4c9d
2 changed files with 9 additions and 1 deletions

View File

@@ -44,3 +44,9 @@ OPTIONS:
}]
}
```
<br>
Cross build uses: https://github.com/messense/rust-musl-cross

View File

@@ -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()
};