diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-08-20 13:58:46 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-08-20 13:58:46 +0200 |
| commit | b79dfcceb45669cac3cfae0be0b2146c725d7a7a (patch) | |
| tree | 8979a3a80af1b12dec24d7a4c68fd9ba706ae09b /src/Compositor.cpp | |
| parent | 7713daa86adf7980fd73cae40203ab6deb6be8b8 (diff) | |
compositor: fix missed raw throws
Diffstat (limited to 'src/Compositor.cpp')
| -rw-r--r-- | src/Compositor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 30357a7d..3d9623a2 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -460,7 +460,7 @@ void CCompositor::startCompositor() { if (m_szWLDisplaySocket.empty()) { Debug::log(CRIT, "m_szWLDisplaySocket NULL!"); wlr_backend_destroy(m_sWLRBackend); - throw std::runtime_error("m_szWLDisplaySocket was null! (wl_display_add_socket and wl_display_add_socket_auto failed)"); + throwError("m_szWLDisplaySocket was null! (wl_display_add_socket and wl_display_add_socket_auto failed)"); } setenv("WAYLAND_DISPLAY", m_szWLDisplaySocket.c_str(), 1); @@ -482,7 +482,7 @@ void CCompositor::startCompositor() { Debug::log(CRIT, "Backend did not start!"); wlr_backend_destroy(m_sWLRBackend); wl_display_destroy(m_sWLDisplay); - throw std::runtime_error("The backend could not start!"); + throwError("The backend could not start!"); } wlr_cursor_set_xcursor(m_sWLRCursor, m_sWLRXCursorMgr, "left_ptr"); |
