summaryrefslogtreecommitdiffstats
path: root/scilab/modules/parameters
diff options
context:
space:
mode:
authorYann Collette <yann.collette@scilab.org>2010-04-15 13:34:05 +0200
committerPierre MARECHAL <pierre.marechal@scilab.org>2010-04-15 13:50:39 +0200
commit4c565c1a27f6a25efef7e0da7d81168b3a4a13ae (patch)
tree0497a21c5dbfd059ff1f82ac372bdd1c8156b5b3 /scilab/modules/parameters
parent3b08aec959dcbcd412c920b51136cc2d2e5c3666 (diff)
downloadscilab-4c565c1a27f6a25efef7e0da7d81168b3a4a13ae.zip
scilab-4c565c1a27f6a25efef7e0da7d81168b3a4a13ae.tar.gz
correct some error messages
Change-Id: I2539e565f2ad7fd85a1b997aca5ed101c58eec94
Diffstat (limited to 'scilab/modules/parameters')
-rw-r--r--scilab/modules/parameters/macros/init_param.sci4
1 files changed, 2 insertions, 2 deletions
diff --git a/scilab/modules/parameters/macros/init_param.sci b/scilab/modules/parameters/macros/init_param.sci
index 416e923..15709f0 100644
--- a/scilab/modules/parameters/macros/init_param.sci
+++ b/scilab/modules/parameters/macros/init_param.sci
@@ -11,11 +11,11 @@ function plist = init_param(varargin)
11param_name = []; 11param_name = [];
12param_val = []; 12param_val = [];
13if (modulo(length(varargin),2)~=0) then 13if (modulo(length(varargin),2)~=0) then
14 error(sprintf(gettext("%s: Wrong number of input argument(s): %s expected.\n"),"init_param",gettext("even number"))); 14 error(sprintf(gettext("%s: Wrong number of input argument(s): An even number expected.\n"),"init_param"));
15end 15end
16for i=1:2:length(varargin) 16for i=1:2:length(varargin)
17 if typeof(varargin(i))~='string' then 17 if typeof(varargin(i))~='string' then
18 error(sprintf(gettext("%s: Wrong type for input argument #%d: %s expected.\n"),"init_param",i,gettext("string"))); 18 error(sprintf(gettext("%s: Wrong type for input argument #%d: String expected.\n"),"init_param",i));
19 end 19 end
20end 20end
21 21