service/rpc2: correct ExamineMemory length error message (#3846)
The maximum length changed in 52405ba86bd9e14a2e643db391cbdebdcbdb3368.
This commit is contained in:
parent
ac8b4718bd
commit
ac14553fda
@ -981,7 +981,7 @@ const ExamineMemoryLengthLimit = 1 << 16
|
||||
|
||||
func (s *RPCServer) ExamineMemory(arg ExamineMemoryIn, out *ExaminedMemoryOut) error {
|
||||
if arg.Length > ExamineMemoryLengthLimit {
|
||||
return errors.New("len must be less than or equal to 1000")
|
||||
return fmt.Errorf("len must be less than or equal to %d", ExamineMemoryLengthLimit)
|
||||
}
|
||||
Mem, err := s.debugger.ExamineMemory(arg.Address, arg.Length)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user