From 5497829608326235c0cd113cd550467a3a5299ee Mon Sep 17 00:00:00 2001 From: Alexander Boettcher Date: Fri, 18 Oct 2024 13:10:51 +0200 Subject: [PATCH] nitpicker: return OUT_OF_CAPS instead throwing it as exception. Issue #5242 Fix #5366 --- repos/os/src/server/nitpicker/gui_session.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repos/os/src/server/nitpicker/gui_session.cc b/repos/os/src/server/nitpicker/gui_session.cc index 7651fb99f1..6516e1c0bd 100644 --- a/repos/os/src/server/nitpicker/gui_session.cc +++ b/repos/os/src/server/nitpicker/gui_session.cc @@ -383,7 +383,7 @@ Gui_session::Buffer_result Gui_session::buffer(Framebuffer::Mode mode) /* buffer re-allocation may consume new dataspace capability if buffer is new */ if (_cap_quota_guard().avail().value < 1) - throw Buffer_result::OUT_OF_CAPS; + return Buffer_result::OUT_OF_CAPS; _framebuffer_session_component.notify_mode_change(mode); return Buffer_result::OK;