@@ -272,8 +272,10 @@ func (p *RedisClient) PipeTypeCommand(keyInfo []*common.Key) ([]string, error) {
272
272
result [i ] = v
273
273
} else {
274
274
result [i ] = ""
275
- err := fmt .Errorf ("run PipeRawCommand with commands[%s] return element[%v] isn't type string[%v], continuing" ,
276
- printCombinList (commands ), ele , reflect .TypeOf (ele ))
275
+
276
+ key := keyInfo [i ]
277
+ err := fmt .Errorf ("run PipeRawCommand with commands[%s] return element[%v] isn't type string[%v], key[%s] continuing" ,
278
+ printCombinList (commands ), ele , reflect .TypeOf (ele ), string (key .Key ))
277
279
common .Logger .Warn (err )
278
280
}
279
281
}
@@ -301,8 +303,9 @@ func (p *RedisClient) PipeExistsCommand(keyInfo []*common.Key) ([]int64, error)
301
303
result [i ] = v
302
304
} else {
303
305
result [i ] = 0
304
- err := fmt .Errorf ("run PipeRawCommand with commands[%s] return element[%v] isn't type int64[%v], continuing" ,
305
- printCombinList (commands ), ele , reflect .TypeOf (ele ))
306
+ key := keyInfo [i ]
307
+ err := fmt .Errorf ("run PipeRawCommand with commands[%s] return element[%v] isn't type int64[%v], key[%s], continuing" ,
308
+ printCombinList (commands ), ele , reflect .TypeOf (ele ), string (key .Key ))
306
309
common .Logger .Warn (err )
307
310
}
308
311
}
@@ -330,8 +333,9 @@ func (p *RedisClient) PipeLenCommand(keyInfo []*common.Key) ([]int64, error) {
330
333
result [i ] = v
331
334
} else {
332
335
result [i ] = 0
333
- err := fmt .Errorf ("run PipeRawCommand with commands[%s] return element[%v] isn't type int64[%v], continuing" ,
334
- printCombinList (commands ), ele , reflect .TypeOf (ele ))
336
+ key := keyInfo [i ]
337
+ err := fmt .Errorf ("run PipeRawCommand with commands[%s] return element[%v] isn't type int64[%v], key[%s], continuing" ,
338
+ printCombinList (commands ), ele , reflect .TypeOf (ele ), string (key .Key ))
335
339
common .Logger .Warn (err )
336
340
}
337
341
}
@@ -359,8 +363,9 @@ func (p *RedisClient) PipeTTLCommand(keyInfo []*common.Key) ([]bool, error) {
359
363
result [i ] = v == 0
360
364
} else {
361
365
result [i ] = false
362
- err := fmt .Errorf ("run PipeRawCommand with commands[%s] return element[%v] isn't type int64[%v], continuing" ,
363
- printCombinList (commands ), ele , reflect .TypeOf (ele ))
366
+ key := keyInfo [i ]
367
+ err := fmt .Errorf ("run PipeRawCommand with commands[%s] return element[%v] isn't type int64[%v], key[%s], continuing" ,
368
+ printCombinList (commands ), ele , reflect .TypeOf (ele ), string (key .Key ))
364
369
common .Logger .Warn (err )
365
370
}
366
371
}
0 commit comments