Commit ed1aaa1f authored by Kevin Lyda's avatar Kevin Lyda 💬

Work on GetConfiguration.

parent 1d1e8558
Pipeline #1231 passed with stage
in 56 seconds
...@@ -451,7 +451,7 @@ func (gc *GQGMCCounter) readCmd(length uint32) ([]byte, error) { ...@@ -451,7 +451,7 @@ func (gc *GQGMCCounter) readCmd(length uint32) ([]byte, error) {
return nil, err return nil, err
} }
if uint32(n) != length { 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 return buf, nil
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment