Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit716759a

Browse files
authored
fix: provide helpful error when no login url specified (#11110)
1 parent167c759 commit716759a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎cli/login.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,10 @@ func (r *RootCmd) login() *clibase.Cmd {
147147
rawURL=inv.Args[0]
148148
}
149149

150+
ifrawURL=="" {
151+
returnxerrors.Errorf("no url argument provided")
152+
}
153+
150154
if!strings.HasPrefix(rawURL,"http://")&&!strings.HasPrefix(rawURL,"https://") {
151155
scheme:="https"
152156
ifstrings.HasPrefix(rawURL,"localhost") {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp