improve error message in cf-sketch (redmine#2048)