fix: drop nil err reference from log output

This commit is contained in:
Jose Diaz-Gonzalez
2019-03-13 16:56:38 -04:00
parent 2a353a9ca5
commit 9486576add

View File

@@ -328,7 +328,7 @@ func VerifyAppName(appName string) (err error) {
dokkuRoot := MustGetEnv("DOKKU_ROOT")
appRoot := strings.Join([]string{dokkuRoot, appName}, "/")
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].*")
if !r.MatchString(appName) {