Fixed error messages
This commit is contained in:
@ -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)?
|
||||
};
|
||||
|
Reference in New Issue
Block a user