This commit is contained in:
6543 2023-04-02 23:50:36 +02:00
parent 00981ed48b
commit a48bb6f43a
No known key found for this signature in database
GPG key ID: B8BE6D610E61C862

View file

@ -12,6 +12,7 @@ import (
"net/http"
"net/http/cookiejar"
"net/url"
"os"
"strings"
"code.gitea.io/sdk/gitea"
@ -210,7 +211,7 @@ func (l *Login) Client(options ...gitea.ClientOption) *gitea.Client {
if !errors.Is(err, gitea.ErrUnknownVersion{}) {
log.Fatal(err)
}
fmt.Println("WARNING: could not detect gitea version!\nINFO: set gitea version: to last supported one")
fmt.Fprintln(os.Stderr, "WARNING: could not detect gitea version!\nINFO: set gitea version: to last supported one")
}
return client
}