mirror of
https://github.com/miniflux/v2.git
synced 2025-08-26 18:21:01 +00:00
cli: avoid misleading error message when creating an admin user
This commit is contained in:
parent
ad1d349a0c
commit
3db3f9884f
4 changed files with 25 additions and 16 deletions
|
@ -16,7 +16,7 @@ func askCredentials() (string, string) {
|
|||
fd := int(os.Stdin.Fd())
|
||||
|
||||
if !term.IsTerminal(fd) {
|
||||
printErrorAndExit(fmt.Errorf("this is not a terminal, exiting"))
|
||||
printErrorAndExit(fmt.Errorf("this is not an interactive terminal, exiting"))
|
||||
}
|
||||
|
||||
fmt.Print("Enter Username: ")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue