Better error messages for invalid model paths.

+review REVIEW-5034