Skip to content
Snippets Groups Projects
Commit 2abd15ba authored by Olivier Sauter's avatar Olivier Sauter
Browse files

make sure returns output arguments to have correct exit even if there is an...

make sure returns output arguments to have correct exit even if there is an error in sub-subroutines

git-svn-id: https://spcsvn.epfl.ch/repos/TCV/gdat/trunk@5153 d63d8f72-b253-0410-a779-e742ad2e26cf
parent 478a8eba
No related branches found
No related tags found
No related merge requests found
......@@ -165,6 +165,9 @@ try
end
catch
warning(['problems calling gdat_' lower(machine_eff)]);
if ~exist('gdat_data'); gdat_data.data = []; end
if ~exist('gdat_params'); gdat_params.plot = []; end
if ~exist('error_status'); error_status = 998; end
return
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment