Add error text on invalid admin command

This commit is contained in:
parnikkapore 2019-06-17 11:18:55 +07:00 committed by GitHub
parent 2fd3ac6837
commit 3332fb6570
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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