Group errors by function, dump to console for now