Skip to content

Commit e456d2a

Browse files
authored
Add error message when explicit load model doesn't exist (#244)
1 parent 8985364 commit e456d2a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/model_repository_manager.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1255,13 +1255,15 @@ ModelRepositoryManager::Poll(
12551255
<< "': not unique across all model repositories";
12561256
break;
12571257
}
1258-
}
1258+
} // else: model doesn't exist in this repository_path
12591259
}
12601260
}
12611261
// For an explicitly specified model that does not exist, we do not mark
12621262
// it as deleted, we simply mark that we could not poll all models.
12631263
if (!exists) {
12641264
*all_models_polled = false;
1265+
LOG_ERROR << "failed to poll model '" << model.first
1266+
<< "': model not found in any model repository.";
12651267
}
12661268
}
12671269
}

0 commit comments

Comments
 (0)