errorprnt function

Print errors from analysis functions