Made error message more helpful.