It would be good to include `path` in the error message in here so the user can tell what is causing this issue.