nicer error message
Tested on darcy.