mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 565844: Distinguish between illegal-value and couldn't-process errors in IPDL error messages. r=bent
This commit is contained in:
parent
c59fbce1fb
commit
39eb188564
@ -384,6 +384,8 @@ AsyncChannel::MaybeHandleError(Result code, const char* channelName)
|
||||
case MsgPayloadError:
|
||||
errorMsg = "Payload error: message could not be deserialized";
|
||||
break;
|
||||
case MsgProcessingError:
|
||||
errorMsg = "Processing error: message was deserialized, but the handler returned false (indicating failure)";
|
||||
case MsgRouteError:
|
||||
errorMsg = "Route error: message sent to unknown actor ID";
|
||||
break;
|
||||
|
@ -60,6 +60,7 @@ struct HasResultCodes
|
||||
MsgNotKnown,
|
||||
MsgNotAllowed,
|
||||
MsgPayloadError,
|
||||
MsgProcessingError,
|
||||
MsgRouteError,
|
||||
MsgValueError,
|
||||
};
|
||||
|
@ -410,6 +410,7 @@ class _Result:
|
||||
NotKnown = ExprVar('MsgNotKnown')
|
||||
NotAllowed = ExprVar('MsgNotAllowed')
|
||||
PayloadError = ExprVar('MsgPayloadError')
|
||||
ProcessingError = ExprVar('MsgProcessingError')
|
||||
RouteError = ExprVar('MsgRouteError')
|
||||
ValuError = ExprVar('MsgValueError') # [sic]
|
||||
|
||||
@ -4238,7 +4239,7 @@ class _GenerateProtocolActorCode(ipdl.ast.Visitor):
|
||||
args=md.makeCxxArgs(params=1,
|
||||
retsems='in', retcallsems='out',
|
||||
implicit=implicit))))
|
||||
failif.addifstmt(StmtReturn(_Result.ValuError))
|
||||
failif.addifstmt(StmtReturn(_Result.ProcessingError))
|
||||
return [ failif ]
|
||||
|
||||
def makeDtorMethodDecl(self, md):
|
||||
|
Loading…
Reference in New Issue
Block a user