Skip to content

Commit

Permalink
Add error message when explicit load model doesn't exist (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
rmccorm4 authored Aug 17, 2023
1 parent 8985364 commit e456d2a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/model_repository_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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.";
}
}
}
Expand Down

0 comments on commit e456d2a

Please sign in to comment.