mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-30 07:05:06 +03:00
Add error text on invalid admin command
This commit is contained in:
parent
2fd3ac6837
commit
3332fb6570
1 changed files with 2 additions and 0 deletions
|
@ -446,6 +446,8 @@ func (a *AdminSocket) handleRequest(conn net.Conn) {
|
||||||
send["response"] = response
|
send["response"] = response
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else { // Command not found in []a.handlers
|
||||||
|
send["error"] = "Command does not exist. Run \'yggdrasilctl list\' to get a list of commands."
|
||||||
}
|
}
|
||||||
|
|
||||||
// Send the response back
|
// Send the response back
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue