Make ParseMarshaledCmd return a known error if the type isn't known.
This commit is contained in:
parent
e396121192
commit
c4be414921
1 changed files with 1 additions and 1 deletions
|
@ -281,7 +281,7 @@ func ParseMarshaledCmd(b []byte) (Cmd, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if cmd == nil {
|
if cmd == nil {
|
||||||
return nil, errors.New("unimplemented")
|
return nil, ErrMethodNotFound
|
||||||
}
|
}
|
||||||
|
|
||||||
// If we get here we have a cmd that can unmarshal itself.
|
// If we get here we have a cmd that can unmarshal itself.
|
||||||
|
|
Loading…
Reference in a new issue