add a comment
This commit is contained in:
parent
5c4d8745a4
commit
28a26fa609
1 changed files with 3 additions and 0 deletions
|
@ -69,6 +69,9 @@ void reload_config(int signal) {
|
|||
|
||||
namespace {
|
||||
|
||||
//! Function to construct an error message.
|
||||
//! An error will make the client disconnect, so use it only for unrecoverable
|
||||
//! errors (use a server message otherwise).
|
||||
config construct_error(const std::string& msg) {
|
||||
config cfg;
|
||||
cfg.add_child("error")["message"] = msg;
|
||||
|
|
Loading…
Add table
Reference in a new issue