Open EliRibble opened 2 weeks ago
As a client of this library I'd like to do different behavior rather than just print out the nested error messages. For example, right now if I just do:
c, err := routeros.DialTimeout(*address, *username, *password, *timeout) if err != nil { fatal(log, err) }
The output looks like:
could not login: from RouterOS device: invalid user name or password (6); close %!w()
Instead I'd like to detect that it was an authentication failure, and tell my user their credentials are bad.
https://github.com/go-routeros/routeros/pull/27 for a solution
As a client of this library I'd like to do different behavior rather than just print out the nested error messages. For example, right now if I just do:
The output looks like:
Instead I'd like to detect that it was an authentication failure, and tell my user their credentials are bad.