Phase 2 commits - not using std::cerr for error output
Ralf Habacker
ralf.habacker at freenet.de
Wed Aug 12 08:55:12 BST 2020
Am 08.08.20 um 05:28 schrieb Prasun Kumar:
> Hi mentors,
>
> The rest of the work from the second phase has been completed. The databases
> for the additional countries have been incorporated in the library.
> Please take a look
> and suggest any necessary changes.
>
> Commits:
> https://sourceforge.net/u/prasun/ktoblzcheck-gsoc2020/commit_browser
Always use std::cerr for error output, which is not done for example at
AccountNumberCheck::readFile(const string &filename)
{
...
std::string sql;
sql = "SELECT country FROM 'institutions' LIMIT 1";
retcode =
sqlite3_exec(db,sql.c_str(),AccountNumberCheck::setCountryCallback,this,&zErrorMsg);
if(retcode){
- std::cout <<zErrorMsg << std::endl;
+ std::cerr <<zErrorMsg << std::endl;
throw -1;
}
Regards
Ralf
More information about the Kde-finance-apps
mailing list