From e456d2ad22778776dfbea631c5d262c42567b6f1 Mon Sep 17 00:00:00 2001 From: Ryan McCormick Date: Thu, 17 Aug 2023 15:10:47 -0700 Subject: [PATCH] Add error message when explicit load model doesn't exist (#244) --- src/model_repository_manager.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/model_repository_manager.cc b/src/model_repository_manager.cc index bb9f7febe..59bc27cb5 100644 --- a/src/model_repository_manager.cc +++ b/src/model_repository_manager.cc @@ -1255,13 +1255,15 @@ ModelRepositoryManager::Poll( << "': not unique across all model repositories"; break; } - } + } // else: model doesn't exist in this repository_path } } // For an explicitly specified model that does not exist, we do not mark // it as deleted, we simply mark that we could not poll all models. if (!exists) { *all_models_polled = false; + LOG_ERROR << "failed to poll model '" << model.first + << "': model not found in any model repository."; } } }