[Kst] kdeextragear-2/kst/kst

George Staikos staikos at kde.org
Fri Jan 16 01:55:07 CET 2004


CVS commit by staikos: 

send error to cerr since this is effectively a "commandline" error
also be more verbose


  M +6 -4      main.cpp   1.48


--- kdeextragear-2/kst/kst/main.cpp  #1.47:1.48
@@ -394,5 +394,5 @@ int main(int argc, char *argv[]) {
 
         if (!file) {
-          kdWarning() << I18N_NOOP("Error: No data in file: ")
+          cerr << I18N_NOOP("Error: No data in file: ")
                       << args->arg(i_file) << endl;
           delete kst;
@@ -401,6 +401,8 @@ int main(int argc, char *argv[]) {
 
         if (!file->isValid() || file->frameCount() < 1) {
-          kdWarning() << I18N_NOOP("Error: No data in file: ")
-                      << args->arg(i_file) << endl;
+          cerr << I18N_NOOP("No data in file: ")
+               << args->arg(i_file)
+               << ".  Trying to continue..."
+               << endl;
           // The file might get data later!
         }





More information about the Kst mailing list