Commit 40a4678a authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Merge pull request #490 from JohannesPfeifer/more_explicit_message_file_not_found

Add more explicit error message if mod-file cannot be located of file in...
parents c6602191 3dd62b37
......@@ -93,7 +93,13 @@ else
d = dir(fname);
if 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])
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')
error(['DYNARE: can''t open ' fname, '. It seems to be located in a different folder (or has an invalid filename).'])
% pre-dynare-preprocessor-hook
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment