parse errors into an error list