diff options
| author | Costa Shulyupin <costa.shul@redhat.com> | 2025-10-11 11:27:34 +0300 |
|---|---|---|
| committer | Tomas Glozar <tglozar@redhat.com> | 2025-11-21 10:30:27 +0100 |
| commit | 8cbb25db81544f0bfc05c037ad61d3e70d031f88 (patch) | |
| tree | 852822f8db3500137639de14d131ee1043be5c60 /tools/lib/python/kdoc/python_version.py | |
| parent | 34c170ae5c3036ef879567a37409a2859e327342 (diff) | |
tools/rtla: Add fatal() and replace error handling pattern
The code contains some technical debt in error handling,
which complicates the consolidation of duplicated code.
Introduce an fatal() function to replace the common pattern of
err_msg() followed by exit(EXIT_FAILURE), reducing the length of an
already long function.
Further patches using fatal() follow.
Signed-off-by: Costa Shulyupin <costa.shul@redhat.com>
Reviewed-by: Tomas Glozar <tglozar@redhat.com>
Link: https://lore.kernel.org/r/20251011082738.173670-2-costa.shul@redhat.com
Signed-off-by: Tomas Glozar <tglozar@redhat.com>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
