mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:38:11 +00:00
Kernel: Stop allowing implicit conversion from KResult to int
This patch removes KResult::operator int() and deals with the fallout. This forces a lot of code to be more explicit in its handling of errors, greatly improving readability.
This commit is contained in:
parent
d30d776ca4
commit
7676edfb9b
14 changed files with 51 additions and 52 deletions
|
@ -174,7 +174,7 @@ RefPtr<Process> Process::create_user_process(RefPtr<Thread>& first_thread, const
|
|||
setup_description(1);
|
||||
setup_description(2);
|
||||
|
||||
error = process->exec(path, move(arguments), move(environment));
|
||||
error = process->exec(path, move(arguments), move(environment)).error();
|
||||
if (error != 0) {
|
||||
dbgln("Failed to exec {}: {}", path, error);
|
||||
first_thread = nullptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue