[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-finance-apps
Subject:    Re: Phase 2 commits - not using std::cerr for error output
From:       Ralf Habacker <ralf.habacker () freenet ! de>
Date:       2020-08-12 7:55:12
Message-ID: 3bb7fc3b-3058-3d34-714c-6779dfc93ed1 () freenet ! de
[Download RAW message or body]

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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic