Explorar el Código

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

Robert McLeod hace 10 años
padre
commit
cacf14a41e
Se han modificado 1 ficheros con 1 adiciones y 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 {