From 2aefd73776abcfa1fd71b873dc9e72a293dc89b3 Mon Sep 17 00:00:00 2001 From: IndecisiveTurtle <47210458+raphaelthegreat@users.noreply.github.com> Date: Mon, 5 Aug 2024 01:26:12 +0300 Subject: [PATCH] liverpool: Print error on exception --- src/video_core/amdgpu/liverpool.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/video_core/amdgpu/liverpool.h b/src/video_core/amdgpu/liverpool.h index b0285809..1c808b9d 100644 --- a/src/video_core/amdgpu/liverpool.h +++ b/src/video_core/amdgpu/liverpool.h @@ -1040,7 +1040,11 @@ private: return {}; } void unhandled_exception() { - UNREACHABLE(); + try { + std::rethrow_exception(std::current_exception()); + } catch (const std::exception& e) { + UNREACHABLE_MSG("Unhandled exception: {}", e.what()); + } } void return_void() {} struct empty {};