error message

pull/330/merge
Darien Raymond 8 years ago
parent 6c45f593dd
commit 8151a4a2dc
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

@ -25,7 +25,7 @@ func GetMessageType(message proto.Message) string {
func GetInstance(messageType string) (interface{}, error) {
mType := proto.MessageType(messageType)
if mType == nil || mType.Elem() == nil {
return nil, errors.New("Unknown type: " + messageType)
return nil, errors.New("Serial: Unknown type: " + messageType)
}
return reflect.New(mType.Elem()).Interface(), nil
}

Loading…
Cancel
Save