feat: put out es bulk err

This commit is contained in:
loveuer
2024-03-26 18:10:19 +08:00
parent f990923dd8
commit f75e31ffbb
2 changed files with 13 additions and 1 deletions

View File

@ -28,6 +28,10 @@ func run(cmd *cobra.Command, args []string) error {
logrus.SetLevel(logrus.DebugLevel)
}
if f_limit == 0 || f_limit > 10000 {
return fmt.Errorf("invalid limit(1 - 10000)")
}
switch f_type {
case "data", "mapping", "setting":
default: