Added firstErr helper