Fixed error messages
This commit is contained in:
parent
40515c463a
commit
8979cc5b25
8
Cargo.lock
generated
8
Cargo.lock
generated
@ -29,9 +29,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "ahash"
|
||||
version = "0.8.7"
|
||||
version = "0.8.8"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "77c3a9648d43b9cd48db467b3f87fdd6e146bcc88ab0180006cef2179fe11d01"
|
||||
checksum = "42cd52102d3df161c77a887b608d7a4897d7cc112886a9537b738a887a03aaff"
|
||||
dependencies = [
|
||||
"cfg-if",
|
||||
"getrandom",
|
||||
@ -215,9 +215,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "chrono"
|
||||
version = "0.4.33"
|
||||
version = "0.4.34"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "9f13690e35a5e4ace198e7beea2895d29f3a9cc55015fcebe6336bd2010af9eb"
|
||||
checksum = "5bc015644b92d5890fab7489e49d21f879d5c990186827d42ec511919404f38b"
|
||||
dependencies = [
|
||||
"num-traits",
|
||||
]
|
||||
|
@ -141,12 +141,11 @@ async fn user_from_document(
|
||||
Err(text) => return Err(Cow::Borrowed(text)),
|
||||
};
|
||||
|
||||
let data =
|
||||
download_file(bot, file).map_err(|_| "Error getting existing account names. Try again");
|
||||
let data = download_file(bot, file).map_err(|_| "Error downloading the file. Try again");
|
||||
|
||||
let existing_names = Account::get_names(user_id, db)
|
||||
.try_collect()
|
||||
.map_err(|_| "Error downloading the file. Try again");
|
||||
.map_err(|_| "Error getting existing account names. Try again");
|
||||
|
||||
try_join!(data, existing_names)?
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user