cf-sketch: improve error messages