Kernel: Improve error handling when setting TTY font

This commit is contained in:
2025-04-18 02:42:24 +03:00
parent d6667844de
commit cef8779bf7
6 changed files with 13 additions and 14 deletions

View File

@@ -188,7 +188,7 @@ namespace Kernel
{
auto absolute_path = TRY(Process::current().absolute_path_of(BAN::StringView(reinterpret_cast<const char*>(argument))));
auto new_font = TRY(LibFont::Font::load(absolute_path));
set_font(new_font);
TRY(set_font(BAN::move(new_font)));
return 0;
}
case TIOCGWINSZ: