disp_moments.m: make error message informative

[skip CI]
time-shift
Johannes Pfeifer 2020-06-08 17:54:58 +02:00
parent d0fb9ce5b8
commit c47682caae
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ ivar=zeros(nvar,1);
for i=1:nvar
i_tmp = strmatch(var_list{i}, M_.endo_names, 'exact');
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
ivar(i) = i_tmp;
end