references #224, better error message