Give more details if the mod file is not found in the current directory.
parent
4fa2d5b8e9
commit
baa596f9be
|
@ -92,10 +92,12 @@ else
|
|||
end;
|
||||
end;
|
||||
d = dir(fname);
|
||||
if length(d) == 0
|
||||
if isequal(length(d),0)
|
||||
fprintf('\nThe file %s could not be located in the "Current Folder". Check whether you typed in the correct filename\n',fname)
|
||||
fprintf('and whether the file is really located in the "Current Folder".\n')
|
||||
error(['DYNARE: can''t open ' fname])
|
||||
fprintf('\nCurrent folder is %s, and contains the following mod files:\n\n',pwd)
|
||||
ls *.mod;
|
||||
error(['dynare:: can''t open ' fname])
|
||||
elseif ~isempty(strfind(fname,'\')) || ~isempty(strfind(fname,'/'))
|
||||
fprintf('\nIt seems you are trying to call a mod-file not located in the "Current Folder". This is not possible.\n')
|
||||
fprintf('Please set your "Current Folder" to the folder where the mod-file is located.\n')
|
||||
|
|
Loading…
Reference in New Issue