Removed print and gave more descriptive error.