CFY-1498 added error code assertion