Debian Codegraph @

tests/utils/printTestError.m

raw
1 function printTestError(filename, exception)
2 fprintf('\n********************************************\n')
3 fprintf('****** Dynare test error encountered *******\n')
4 fprintf('********************************************\n')
5 fprintf(' While running file: %s\n', filename);
6 if isoctave
7 fprintf(' message: %s\n', exception.message)
8 if (isfield(exception, 'stack'))
9 fprintf('\n Stacktrace:\n')
10 for i=1:size(exception.stack, 1)
11 fprintf(' %s(%s):%d.%d\n', exception.stack(i).file, exception.stack(i).name, ...
12 exception.stack(i).line, exception.stack(i).column);
13 end
14 end
15 else
16 fprintf('\n')
17 disp(getReport(exception))
18 end
19 fprintf('********************************************\n\n\n')
20 end