diff options
Diffstat (limited to 'src/rhimportd')
-rw-r--r-- | src/rhimportd/ctrlTelnet.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rhimportd/ctrlTelnet.go b/src/rhimportd/ctrlTelnet.go index 7371f7c..ddb0504 100644 --- a/src/rhimportd/ctrlTelnet.go +++ b/src/rhimportd/ctrlTelnet.go @@ -356,7 +356,10 @@ func StartControlTelnet(addr string, conf *rhimport.Config, db *rddb.DB, session cmdlist["run"] = func(c *telgo.Client, args []string) bool { return telnetRun(c, args, conf, db, sessions) } rhl.Println("telnet-ctrl: listening on", addr) - s := telgo.NewServer(addr, "rhimportd> ", cmdlist, nil) + s, err := telgo.NewServer(addr, "rhimportd> ", cmdlist, nil) + if err != nil { + fmt.Printf("telnet server returned: %s", err) + } if err := s.Run(); err != nil { fmt.Printf("telnet server returned: %s", err) } |