Browse Source

Return insufficent data not encoding error when pushing

Evan Huus 12 years ago
parent
commit
c90c11a84b
1 changed files with 1 additions and 1 deletions
  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)