locator: create/reset_snitch(): improve the error message for a not-supported case
Fixes issue #124 Signed-off-by: Vlad Zolotarov <vladz@cloudius-systems.com>
This commit is contained in:
committed by
Avi Kivity
parent
6f9cc6efe4
commit
5f13ebad30
@@ -233,7 +233,7 @@ future<> i_endpoint_snitch::init_snitch_obj(
|
||||
s->set_my_distributed(&snitch_obj);
|
||||
local_inst = std::move(s);
|
||||
} catch (no_such_class& e) {
|
||||
snitch_logger.error("{}", e.what());
|
||||
snitch_logger.error("Can't create snitch {}: not supported", snitch_name);
|
||||
throw;
|
||||
} catch (...) {
|
||||
throw;
|
||||
|
||||
Reference in New Issue
Block a user