read() error msg fixed
[scilab.git] / scilab / modules / io / sci_gateway / cpp / sci_read.cpp
index 971201f..83f66f0 100644 (file)
@@ -425,7 +425,8 @@ types::Function::ReturnValue sci_read(types::typed_list &in, int _iRetCount, typ
                             {
                                 FREE(pstFormat);
                             }
-                            Scierror(999, _("End of file at line %d.\n"));
+
+                            Scierror(999, _("%s: Input missing from console.\n"), "read");
                             return types::Function::Error;
                         }
                         else
@@ -644,8 +645,7 @@ types::Function::ReturnValue sci_read(types::typed_list &in, int _iRetCount, typ
                         {
                             delete pD;
                             FREE(pstFormat);
-
-                            Scierror(999, _("End of file at line %d.\n"));
+                            Scierror(999, _("%s: Input missing from console.\n"), "read");
                             return types::Function::Error;
                         }
                     }