mirror of
https://github.com/Syping/dtranslatebot.git
synced 2025-12-04 10:51:48 +01:00
output refactor
This commit is contained in:
parent
7e3696ce90
commit
e2f3739fa1
6 changed files with 23 additions and 25 deletions
|
|
@ -60,7 +60,7 @@ const std::vector<language> libretranslate::get_languages()
|
|||
}
|
||||
}
|
||||
catch (const std::exception &exception) {
|
||||
std::cerr << "[dtranslatebot] [EXCEPTION] " << exception.what() << std::endl;
|
||||
std::cerr << "[Exception] " << exception.what() << std::endl;
|
||||
}
|
||||
|
||||
return languages;
|
||||
|
|
@ -94,7 +94,7 @@ const std::string libretranslate::translate(const std::string &text, const std::
|
|||
}
|
||||
}
|
||||
catch (const std::exception &exception) {
|
||||
std::cerr << "[dtranslatebot] [EXCEPTION] " << exception.what() << std::endl;
|
||||
std::cerr << "[Exception] " << exception.what() << std::endl;
|
||||
}
|
||||
|
||||
return text;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue