Fixed error messages

This commit is contained in:
2024-02-11 12:12:14 +03:00
parent 40515c463a
commit 8979cc5b25
2 changed files with 6 additions and 7 deletions

View File

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