fix: drop nil err reference from log output

This commit is contained in:
Jose Diaz-Gonzalez committed 2019-04-08 11:31:34 -04:00
1 parent 2a353a9ca5
commit 9486576add
1 file changed
+1 -1
+1 -1
View File
@@ -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) {