use error-parser function to extract error and warning messages