Skip to content
Snippets Groups Projects

disp_moments.m: make error message informative

Merged Johannes Pfeifer requested to merge JohannesPfeifer/dynare:disp_moments into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -40,7 +40,7 @@ ivar=zeros(nvar,1);
@@ -40,7 +40,7 @@ ivar=zeros(nvar,1);
for i=1:nvar
for i=1:nvar
i_tmp = strmatch(var_list{i}, M_.endo_names, 'exact');
i_tmp = strmatch(var_list{i}, M_.endo_names, 'exact');
if isempty(i_tmp)
if isempty(i_tmp)
error ('One of the variable specified does not exist') ;
error('The variable %s specified is not an endogenous variable',var_list{i});
else
else
ivar(i) = i_tmp;
ivar(i) = i_tmp;
end
end
Loading