Made the error message more descriptive