From ed1aaa1f3dc404775e0a194d7c273d375dae5755 Mon Sep 17 00:00:00 2001 From: Kevin Lyda <kevin@ie.suberic.net> Date: Wed, 1 Feb 2017 21:40:35 +0000 Subject: [PATCH] Work on GetConfiguration. --- devices/geiger/gqgmc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devices/geiger/gqgmc.go b/devices/geiger/gqgmc.go index 717f118..7702622 100644 --- a/devices/geiger/gqgmc.go +++ b/devices/geiger/gqgmc.go @@ -451,7 +451,7 @@ func (gc *GQGMCCounter) readCmd(length uint32) ([]byte, error) { return nil, err } if uint32(n) != length { - return nil, errors.New("Short read") + return nil, fmt.Errorf("Short read (got: %d, wanted: %d)", uint32(n), length) } return buf, nil } -- GitLab