mirror of
https://github.com/matrix-construct/construct
synced 2025-02-18 17:50:16 +01:00
modules/console: Catch params exception for output to ostream rather than ircd::log.
This commit is contained in:
parent
3d16a89e33
commit
e6e8a07e99
1 changed files with 5 additions and 0 deletions
|
@ -199,6 +199,11 @@ try
|
|||
using prototype = bool (struct opt &, const string_view &);
|
||||
return ptr.operator()<prototype>(opt, args);
|
||||
}
|
||||
catch(const params::error &e)
|
||||
{
|
||||
out << e.what() << std::endl;
|
||||
return true;
|
||||
}
|
||||
catch(const bad_command &e)
|
||||
{
|
||||
return -2;
|
||||
|
|
Loading…
Add table
Reference in a new issue