mirror of
https://github.com/microsoft/autogen.git
synced 2025-09-28 17:49:35 +00:00
11 lines
354 B
Python
11 lines
354 B
Python
![]() |
from autogencap.DebugLog import Error
|
||
|
from autogencap.proto.CAP_pb2 import Error as ErrorMsg, ErrorCode
|
||
|
|
||
|
|
||
|
def report_error_msg(msg: ErrorMsg, src: str):
|
||
|
if msg is not None:
|
||
|
err = ErrorMsg()
|
||
|
err.ParseFromString(msg)
|
||
|
if err.code != ErrorCode.EC_OK:
|
||
|
Error(src, f"Error response: code[{err.code}] msg[{err.message}]")
|