Browse Source

error message

Darien Raymond 8 năm trước cách đây
mục cha
commit
8151a4a2dc
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      common/serial/typed_message.go

+ 1 - 1
common/serial/typed_message.go

@@ -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
 }