read() error msg fixed 67/20767/2
Cedric Delamarre [Wed, 30 Jan 2019 13:23:31 +0000 (14:23 +0100)]
  from scilab/modules/io/tests/unit_tests/read_interactive.tst

  --> read(5,2,2)
  --> <enter>

Change-Id: Ia1f58d7a8306eb49ff4fbafed9630204c0bd0902

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