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:
parent
f7d6a00acb
commit
2a75027118
1 changed files with 8 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue