Matlab error reporting improved.