Fix message text in NotImplementedError (#325)

This commit is contained in:
Danil Akhtarov 2022-01-21 14:39:09 +03:00 committed by GitHub
parent d260f071e0
commit d991040ff6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -524,7 +524,7 @@ class FieldCompiler(MessageCompiler):
source_type=self.proto_obj.type_name,
)
else:
raise NotImplementedError(f"Unknown type {field.type}")
raise NotImplementedError(f"Unknown type {self.proto_obj.type}")
@property
def annotation(self) -> str: