0
0
Fork 0
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:
Jason Volk 2018-04-05 20:12:21 -07:00
parent 3d16a89e33
commit e6e8a07e99

View file

@ -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;