Skip to content

Commit

Permalink
don't print error message twice
Browse files Browse the repository at this point in the history
  • Loading branch information
jooh committed Jul 31, 2018
1 parent 9dd0a50 commit bad7a51
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion aa_engine/aas_log.m
Expand Up @@ -60,7 +60,10 @@ function aas_log(aap,iserr,msg,style)
cd(aap.internal.pwd)
end

if aap.options.verbose ~= -1, error('aa:internal','aa error:\n%s\n',msg); end % undocumented, for devel only
% undocumented, for devel only
if aap.options.verbose ~= -1
error('aa:internal','aa error:\n%s\n','see above (or set aap.options.verbose')
end
else % warnings
if aap.options.verbose == 2, logitem([msg '\n'],style); end
end
Expand Down

0 comments on commit bad7a51

Please sign in to comment.