diff --git a/tensorflow_serving/sources/storage_path/file_system_storage_path_source.cc b/tensorflow_serving/sources/storage_path/file_system_storage_path_source.cc index d68f412a60f..1a4967a11a4 100644 --- a/tensorflow_serving/sources/storage_path/file_system_storage_path_source.cc +++ b/tensorflow_serving/sources/storage_path/file_system_storage_path_source.cc @@ -256,9 +256,13 @@ absl::Status PollFileSystemForServable( // returns an empty list instead of erring if the base path isn't found.) absl::Status status = Env::Default()->FileExists(servable.base_path()); if (!status.ok()) { - return errors::InvalidArgument( - "Could not find base path ", servable.base_path(), " for servable ", - servable.servable_name(), " with error ", status.ToString()); + return errors::NotFound( + "Could not find base path ", servable.base_path(), + " for servable ", servable.servable_name(), + ". TensorFlow Serving expects the following directory structure:\n" + " //saved_model.pb\n" + "Where is a numeric directory name (e.g. '1').\n" + "Underlying filesystem error: ", status.ToString()); } if (servable.servable_version_policy().policy_choice_case() ==