diff --git a/bsky/client.go b/bsky/client.go index 2305f3e..34047a4 100644 --- a/bsky/client.go +++ b/bsky/client.go @@ -3,6 +3,7 @@ package bsky import ( "encoding/json" "errors" + "fmt" "net/http" "net/url" "os" @@ -103,7 +104,7 @@ func (b *BSky) Auth(authData []string) error { b.Bluesky.Cfg.AppPassword = authData[1] err = b.Bluesky.CreateSession(b.Bluesky.Cfg) if err != nil { - return errors.New("unable to auth") + return errors.New(fmt.Sprintf("unable to auth: %s", err)) } b.Bluesky.Cfg.AppPassword = "" // we don't need to save this PersistAuthSession(b.Bluesky.Cfg)