output refactor

This commit is contained in:
Syping 2024-02-04 10:12:19 +01:00
parent 7e3696ce90
commit e2f3739fa1
6 changed files with 23 additions and 25 deletions

View file

@ -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;