0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2025-04-29 13:04:17 +02:00

modules/console: Improve error msg for peer not found.

This commit is contained in:
Jason Volk 2020-04-30 06:29:19 -07:00
parent f7d6a00acb
commit 2a75027118

View file

@ -4969,6 +4969,7 @@ html__peer(opt &out, const string_view &line)
bool
console_cmd__peer(opt &out, const string_view &line)
try
{
if(out.html)
return html__peer(out, line);
@ -5074,6 +5075,13 @@ console_cmd__peer(opt &out, const string_view &line)
return true;
}
catch(const std::out_of_range &)
{
throw error
{
"Peer not found"
};
}
bool
console_cmd__peer__count(opt &out, const string_view &line)