Explorar el Código

Return insufficent data not encoding error when pushing

Evan Huus hace 12 años
padre
commit
c90c11a84b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      encoding/real_decoder.go

+ 1 - 1
encoding/real_decoder.go

@@ -176,7 +176,7 @@ func (rd *realDecoder) Push(in PushDecoder) error {
 
 	reserve := in.ReserveLength()
 	if rd.Remaining() < reserve {
-		return DecodingError
+		return InsufficientData
 	}
 
 	rd.stack = append(rd.stack, in)