Make ParseMarshaledCmd return a known error if the type isn't known.

This commit is contained in:
Owain G. Ainsworth 2013-10-29 22:33:27 +00:00
parent e396121192
commit c4be414921

View file

@ -281,7 +281,7 @@ func ParseMarshaledCmd(b []byte) (Cmd, error) {
}
if cmd == nil {
return nil, errors.New("unimplemented")
return nil, ErrMethodNotFound
}
// If we get here we have a cmd that can unmarshal itself.