Skip to content

Commit

Permalink
[PluginServer] Add jsonrpc over http error code legacy option (#1754)
Browse files Browse the repository at this point in the history
  • Loading branch information
MFransen69 authored Sep 18, 2024
1 parent f14f96f commit 5813600
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Source/Thunder/PluginServer.h
Original file line number Diff line number Diff line change
Expand Up @@ -3726,6 +3726,9 @@ namespace PluginHost {
response->Message = _T("JSONRPC executed succesfully");
}
else {
#ifdef LEGACY_JSONRPCOVERHTTP_ERRORCODE
response->ErrorCode = Web::STATUS_ACCEPTED;
#endif
response->Message = _T("Failure on JSONRPC: ") + Core::NumberType<int32_t>(body->Error.Code).Text();
}
}
Expand Down

0 comments on commit 5813600

Please sign in to comment.