Keep ref to original path for accurate error message