Skip to content
Snippets Groups Projects
Verified Commit a519e8a6 authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Throw error message if call to X13 binary fails.

parent 12ee7ebb
No related branches found
No related tags found
No related merge requests found
Pipeline #7892 passed
......@@ -2,7 +2,7 @@ function run(o, basename)
% Runs x13 program and saves results.
% Copyright © 2017 Dynare Team
% Copyright © 2017, 2022 Dynare Team
%
% This file is part of Dynare.
%
......@@ -31,7 +31,11 @@ if ~exist(x13b, 'file')
end
% Run spc file.
[~, ~] = system(sprintf('%s %s', x13b, basename));
[errorflag, ~] = system(sprintf('%s %s', x13b, basename));
if errorflag
error('X13 failed on %s.spc', basename)
end
o.results.name = basename; % Base name of the generated files.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment