Explorar o código

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

Robert McLeod %!s(int64=10) %!d(string=hai) anos
pai
achega
cacf14a41e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 {