mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-13 04:52:23 +00:00
Kernel: Convert CoreDump to KString using try_serialize_absolute_path
This commit is contained in:
parent
eb5f6cd108
commit
a482f7718d
Notes:
sideshowbarker
2024-07-17 21:03:49 +09:00
Author: https://github.com/IdanHo
Commit: a482f7718d
Pull-request: https://github.com/SerenityOS/serenity/pull/11817
Reviewed-by: https://github.com/bgianfo ✅
1 changed files with 1 additions and 1 deletions
|
@ -219,7 +219,7 @@ ErrorOr<void> Coredump::create_notes_process_data(auto& builder) const
|
|||
JsonObjectSerializer process_obj { builder };
|
||||
process_obj.add("pid"sv, m_process->pid().value());
|
||||
process_obj.add("termination_signal"sv, m_process->termination_signal());
|
||||
process_obj.add("executable_path"sv, m_process->executable() ? m_process->executable()->absolute_path() : String::empty());
|
||||
process_obj.add("executable_path"sv, m_process->executable() ? TRY(m_process->executable()->try_serialize_absolute_path())->view() : ""sv);
|
||||
|
||||
{
|
||||
auto arguments_array = process_obj.add_array("arguments"sv);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue