mirror of
https://gitea.com/gitea/tea.git
synced 2024-06-03 10:11:22 +05:30
stderr
This commit is contained in:
parent
00981ed48b
commit
a48bb6f43a
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue