mirror of
https://github.com/sosedoff/pgweb.git
synced 2024-12-15 11:52:12 +03:00
Merge pull request #206 from sosedoff/fix-lock-session
Do not return error when session is locked and database url is blank
This commit is contained in:
commit
577edd86f4
@ -1,7 +1,6 @@
|
||||
package command
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"strings"
|
||||
|
||||
@ -51,11 +50,6 @@ func ParseOptions() error {
|
||||
Opts.Sessions = false
|
||||
}
|
||||
|
||||
// When session is locked, connection UI is not displayed.
|
||||
if Opts.LockSession && Opts.Url == "" {
|
||||
return fmt.Errorf("Please provide connection url")
|
||||
}
|
||||
|
||||
if Opts.Prefix != "" && !strings.Contains(Opts.Prefix, "/") {
|
||||
Opts.Prefix = Opts.Prefix + "/"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user