From ba43b26259b8739a7ea5361e3824ae0ec0ae3c18 Mon Sep 17 00:00:00 2001 From: Samuel GOUGEON Date: Sun, 5 Jul 2020 20:45:53 +0200 Subject: [PATCH] [fileio] mputstr() error message fixed Issue: --> mputstr(["Scilab" ; "Xcos"], fd) mputstr: Wrong type for input argument #1: string expected. Test: fid = mopen(tempname(), "wt"); mputstr(["Scilab" ; "Xcos"], fid); mclose(fid); Change-Id: I3b6c586c1b77328ebb2ce7a0d0f31eb08170e689 --- .../modules/fileio/sci_gateway/cpp/sci_mputstr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scilab/modules/fileio/sci_gateway/cpp/sci_mputstr.cpp b/scilab/modules/fileio/sci_gateway/cpp/sci_mputstr.cpp index 8b4e52c..81d695c 100644 --- a/scilab/modules/fileio/sci_gateway/cpp/sci_mputstr.cpp +++ b/scilab/modules/fileio/sci_gateway/cpp/sci_mputstr.cpp @@ -48,7 +48,7 @@ types::Function::ReturnValue sci_mputstr(types::typed_list &in, int _iRetCount, if (in[0]->isString() == false || in[0]->getAs()->isScalar() == false) { - Scierror(999, _("%s: Wrong type for input argument #%d: string expected.\n"), "mputstr", 1); + Scierror(999, _("%s: Argument #%d: a single string expected.\n"), "mputstr", 1); return types::Function::Error; } -- 1.7.9.5