0
0
forked from toolshed/abra

fix: error out correctly from ValidateDomain

This commit is contained in:
2022-02-24 15:57:40 +01:00
parent ecbeacf10f
commit 823f869f1d
2 changed files with 5 additions and 8 deletions

View File

@ -427,6 +427,8 @@ developer machine.
internal.ShowSubcommandHelpAndError(c, err)
}
domainName := internal.ValidateDomain(c)
if local {
if err := newLocalServer(c, "default"); err != nil {
logrus.Fatal(err)
@ -434,11 +436,6 @@ developer machine.
return nil
}
domainName, err := internal.ValidateDomain(c)
if err != nil {
logrus.Fatal(err)
}
username := c.Args().Get(1)
if username == "" {
systemUser, err := user.Current()