Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dynare
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dynare
dynare
Merge requests
!490
Add more explicit error message if mod-file cannot be located of file in...
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add more explicit error message if mod-file cannot be located of file in...
JohannesPfeifer:more_explicit_message_file_not_found
into
master
Overview
1
Commits
1
Pipelines
0
Changes
1
Merged
Johannes Pfeifer
requested to merge
JohannesPfeifer:more_explicit_message_file_not_found
into
master
11 years ago
Overview
1
Commits
1
Pipelines
0
Changes
1
Expand
... different folder is called
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
3dd62b37
1 commit,
6 years ago
1 file
+
6
−
0
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
matlab/dynare.m
+
6
−
0
Options
@@ -93,7 +93,13 @@ else
@@ -93,7 +93,13 @@ else
end
;
end
;
d
=
dir
(
fname
);
d
=
dir
(
fname
);
if
length
(
d
)
==
0
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
])
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).'
])
end
end
% pre-dynare-preprocessor-hook
% pre-dynare-preprocessor-hook
Loading