mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-12 23:09:45 +03:00
utils: codegen: ipc: Log error code when remote call fails
The error code can be useful in diagnosing the underlying issue, so log that as well, not just the existence of the issue. Signed-off-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
This commit is contained in:
parent
d58ccabab7
commit
4adefc100d
1 changed files with 1 additions and 1 deletions
|
@ -206,7 +206,7 @@ void {{proxy_name}}::recvMessage(const IPCMessage &data)
|
|||
);
|
||||
{%- endif %}
|
||||
if (_ret < 0) {
|
||||
LOG(IPAProxy, Error) << "Failed to call {{method.mojom_name}}";
|
||||
LOG(IPAProxy, Error) << "Failed to call {{method.mojom_name}}: " << _ret;
|
||||
{%- if method|method_return_value != "void" %}
|
||||
return static_cast<{{method|method_return_value}}>(_ret);
|
||||
{%- else %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue