aboutsummaryrefslogtreecommitdiffstats
path: root/pktline/decoder.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2015-10-23 02:26:15 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2015-10-23 02:26:15 +0200
commite1d8866ffa78fa16d2f39b0ba5344a7269ee5371 (patch)
tree4602b0ca341187aad77048f807cde423af410554 /pktline/decoder.go
parent2275fa7d0c75d20103f90b0e1616937d5a9fc5e6 (diff)
downloadgo-git-e1d8866ffa78fa16d2f39b0ba5344a7269ee5371.tar.gz
clients and remote: fetch implementation
Diffstat (limited to 'pktline/decoder.go')
-rw-r--r--pktline/decoder.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/pktline/decoder.go b/pktline/decoder.go
index db3fd72..76be108 100644
--- a/pktline/decoder.go
+++ b/pktline/decoder.go
@@ -2,6 +2,7 @@ package pktline
import (
"errors"
+ "fmt"
"io"
"strconv"
)
@@ -25,9 +26,10 @@ func (d *Decoder) readLine() (string, error) {
if _, err := d.r.Read(raw); err != nil {
return "", err
}
-
header, err := strconv.ParseInt(string(raw), 16, 16)
if err != nil {
+ fmt.Println(err)
+
return "", ErrInvalidHeader
}