Skip to content

nrf_rpc: allow more verbose error info#2092

Draft
MarekPorwisz wants to merge 2 commits intonrfconnect:mainfrom
MarekPorwisz:extend_rpc_error_data
Draft

nrf_rpc: allow more verbose error info#2092
MarekPorwisz wants to merge 2 commits intonrfconnect:mainfrom
MarekPorwisz:extend_rpc_error_data

Conversation

@MarekPorwisz
Copy link
Copy Markdown
Contributor

Modified the nrf_rpc error repoting api to provide more detailed error information. This will help in debugging RPC communication related issues. Additional file/function/line number were added to the error description.

Comment thread nrf_rpc/nrf_rpc.c

/** Report an error that cannot be reported as a function return value */
#ifdef CONFIG_NRF_RPC_DETAILED_ERROR_REPORTING
void nrf_rpc_err_impl(int code, enum nrf_rpc_err_src src,
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As it's a library - shouldn't we just have both implementations available and dispatch which to use in the uper layer?

@MarekPorwisz MarekPorwisz force-pushed the extend_rpc_error_data branch from 885545f to 8b9ae0e Compare April 29, 2026 11:53
NordicBuilder added a commit to NordicBuilder/sdk-nrf that referenced this pull request Apr 29, 2026
Automatically created by action-manifest-pr GH action from PR:
nrfconnect/sdk-nrfxlib#2092

Signed-off-by: Nordic Builder <[email protected]>
@MarekPorwisz MarekPorwisz force-pushed the extend_rpc_error_data branch from 8b9ae0e to cd94a72 Compare April 29, 2026 12:35
NordicBuilder added a commit to NordicBuilder/sdk-nrf that referenced this pull request Apr 29, 2026
Automatically created by action-manifest-pr GH action from PR:
nrfconnect/sdk-nrfxlib#2092

Signed-off-by: Nordic Builder <[email protected]>
@MarekPorwisz MarekPorwisz force-pushed the extend_rpc_error_data branch from cd94a72 to d2c9379 Compare April 30, 2026 11:52
NordicBuilder added a commit to NordicBuilder/sdk-nrf that referenced this pull request Apr 30, 2026
Automatically created by action-manifest-pr GH action from PR:
nrfconnect/sdk-nrfxlib#2092

Signed-off-by: Nordic Builder <[email protected]>
@MarekPorwisz MarekPorwisz removed the DNM Do not merge label May 4, 2026
@MarekPorwisz MarekPorwisz force-pushed the extend_rpc_error_data branch from d2c9379 to 7c8aa38 Compare May 4, 2026 10:19
NordicBuilder added a commit to NordicBuilder/sdk-nrf that referenced this pull request May 4, 2026
Automatically created by action-manifest-pr GH action from PR:
nrfconnect/sdk-nrfxlib#2092

Signed-off-by: Nordic Builder <[email protected]>
Modified the nrf_rpc error repoting api to provide more detailed error
information. This will help in debugging RPC communication related
issues. Additional file/function/line number were added to the error
description.

Signed-off-by: Marek Porwisz <[email protected]>
For debug purposes due to the number of occurrences of the
nrf_rpc_cbor_*_no_err function calls. The function/file/line value is
passed from the calling function.

Signed-off-by: Marek Porwisz <[email protected]>
@MarekPorwisz MarekPorwisz force-pushed the extend_rpc_error_data branch from 1660810 to 2f9e94c Compare May 5, 2026 13:12
NordicBuilder added a commit to NordicBuilder/sdk-nrf that referenced this pull request May 5, 2026
Automatically created by action-manifest-pr GH action from PR:
nrfconnect/sdk-nrfxlib#2092

Signed-off-by: Nordic Builder <[email protected]>
NordicBuilder added a commit to NordicBuilder/sdk-nrf that referenced this pull request May 5, 2026
Automatically created by action-manifest-pr GH action from PR:
nrfconnect/sdk-nrfxlib#2092

Signed-off-by: Nordic Builder <[email protected]>
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 5, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants