Skip to content
Snippets Groups Projects
Commit c8880b68 authored by jacques.grelet_ird.fr's avatar jacques.grelet_ird.fr
Browse files

utilise le mode sprintf pour error

parent d0079ab5
No related branches found
No related tags found
No related merge requests found
......@@ -91,8 +91,9 @@ for i=1:ncv.size
% check if line begin and end with '#' (we add the 5 header lines)
% ----------------------------------------------------------------_
if ~(strcmp(id, '#') & strcmp(endl, '#'))
error(['mismatch field number in ' file ', line: ' int2str(i+5) ...
' ... Check your file']);
error('tsgqc_GUI:tsg_nc', ...
'mismatch field number in %s, line: %d\nCheck your file : %s ...', ...
file, i+5, file);
end
% get key
......
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