Skip to content
Snippets Groups Projects
Commit e964b22f authored by Rick Carback's avatar Rick Carback
Browse files

Add informative error when gateways cannot be decoded

parent 45419227
No related branches found
No related tags found
No related merge requests found
...@@ -308,6 +308,8 @@ var sessionFileError = errors.New("Session file cannot be loaded and " + ...@@ -308,6 +308,8 @@ var sessionFileError = errors.New("Session file cannot be loaded and " +
func (cl *Client) InitListeners() error { func (cl *Client) InitListeners() error {
transmitGateway, err := id.Unmarshal(cl.ndf.Gateways[0].ID) transmitGateway, err := id.Unmarshal(cl.ndf.Gateways[0].ID)
if err != nil { if err != nil {
globals.Log.DEBUG.Printf("%s: Gateways are: %+v", err.Error(),
cl.ndf.Gateways)
return err return err
} }
transmissionHost, ok := cl.receptionManager.Comms.GetHost(transmitGateway) transmissionHost, ok := cl.receptionManager.Comms.GetHost(transmitGateway)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment