mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-22 14:22:37 +01:00
watchtower/errors: adds pkg level errors
This commit is contained in:
parent
2a6dbb9d78
commit
e0b72580f5
1 changed files with 18 additions and 0 deletions
18
watchtower/errors.go
Normal file
18
watchtower/errors.go
Normal file
|
@ -0,0 +1,18 @@
|
|||
package watchtower
|
||||
|
||||
import "errors"
|
||||
|
||||
var (
|
||||
// ErrNoListeners signals that no listening ports were provided,
|
||||
// rendering the tower unable to receive client requests.
|
||||
ErrNoListeners = errors.New("no listening ports were specified")
|
||||
|
||||
// ErrNonExperimentalConf signals that an attempt to apply a
|
||||
// non-experimental Conf to a Config was detected.
|
||||
ErrNonExperimentalConf = errors.New("cannot use watchtower in non-" +
|
||||
"experimental builds")
|
||||
|
||||
// ErrNoNetwork signals that no tor.Net is provided in the Config, which
|
||||
// prevents resolution of listening addresses.
|
||||
ErrNoNetwork = errors.New("no network specified, must be tor or clearnet")
|
||||
)
|
Loading…
Add table
Reference in a new issue