Better error handling for contract description.