fix: drop nil err reference from log output
This commit is contained in:
1 parent
2a353a9ca5
commit
9486576add
1 file changed
+1
-1
@@ -328,7 +328,7 @@ func VerifyAppName(appName string) (err error) {
|
|||||||
dokkuRoot := MustGetEnv("DOKKU_ROOT")
|
dokkuRoot := MustGetEnv("DOKKU_ROOT")
|
||||||
appRoot := strings.Join([]string{dokkuRoot, appName}, "/")
|
appRoot := strings.Join([]string{dokkuRoot, appName}, "/")
|
||||||
if !DirectoryExists(appRoot) {
|
if !DirectoryExists(appRoot) {
|
||||||
return fmt.Errorf("app %s does not exist: %v", appName, err)
|
return fmt.Errorf("app %s does not exist", appName)
|
||||||
}
|
}
|
||||||
r, _ := regexp.Compile("^[a-z0-9].*")
|
r, _ := regexp.Compile("^[a-z0-9].*")
|
||||||
if !r.MatchString(appName) {
|
if !r.MatchString(appName) {
|
||||||
|
|||||||
Reference in new issue
Block a user