CFY-1662 improve error debugging error message