mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-21 17:46:58 -05:00
error message
This commit is contained in:
parent
6c45f593dd
commit
8151a4a2dc
@ -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…
Reference in New Issue
Block a user