same error function for all errors
parse error to output list
specify filename when parsing
updated test code