add actual error message
This commit is contained in:
parent
878efc08d0
commit
b052d69df7
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue