Let configuration has it's own Err type

This commit is contained in:
Tnze
2023-11-19 02:34:30 +08:00
parent 006f958f43
commit 2c2f1547be
3 changed files with 40 additions and 19 deletions

View File

@ -121,19 +121,6 @@ func (c *Client) join(addr string, options JoinOptions) error {
return nil
}
type LoginErr struct {
Stage string
Err error
}
func (l LoginErr) Error() string {
return "bot: " + l.Stage + " error: " + l.Err.Error()
}
func (l LoginErr) Unwrap() error {
return l.Err
}
type DisconnectErr chat.Message
func (d DisconnectErr) Error() string {