Selaa lähdekoodia

Fixed bug that wasn't showing the StaticRootPath when validation failed

Robert McLeod 10 vuotta sitten
vanhempi
commit
cacf14a41e
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      pkg/setting/setting.go

+ 1 - 1
pkg/setting/setting.go

@@ -386,7 +386,7 @@ func validateStaticRootPath() error {
 		return nil
 	}
 
-	return errors.New("Failed to detect generated css or javascript files in static root (%s), have you executed default grunt task?")
+	return fmt.Errorf("Failed to detect generated css or javascript files in static root (%s), have you executed default grunt task?", StaticRootPath)
 }
 
 func NewConfigContext(args *CommandLineArgs) error {