Trac #490 - raised error now includes sensible message.