Handles the case where no version information is available
This commit is contained in:
parent
ed084298c7
commit
1ae3312ad6
|
@ -346,7 +346,11 @@ func (c *client) simpleCommand(action string) {
|
||||||
case "HELP", "?":
|
case "HELP", "?":
|
||||||
c.Visit(helplocation)
|
c.Visit(helplocation)
|
||||||
case "VERSION":
|
case "VERSION":
|
||||||
c.SetMessage("Bombadillo version: " + version, false)
|
ver := version
|
||||||
|
if ver == "" {
|
||||||
|
ver = "Improperly compiled, no version information"
|
||||||
|
}
|
||||||
|
c.SetMessage("Bombadillo version: " + ver, false)
|
||||||
c.DrawMessage()
|
c.DrawMessage()
|
||||||
default:
|
default:
|
||||||
c.SetMessage(syntaxErrorMessage(action), true)
|
c.SetMessage(syntaxErrorMessage(action), true)
|
||||||
|
|
Loading…
Reference in New Issue