From 31906fef2d896790d5436caeb5394e8700ce8eb8 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Fri, 18 Apr 2025 08:30:41 +0200 Subject: [PATCH] Throw detailed exception --- src/windows-emulator/module/module_mapping.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/windows-emulator/module/module_mapping.cpp b/src/windows-emulator/module/module_mapping.cpp index 84c3ccd0..8f433809 100644 --- a/src/windows-emulator/module/module_mapping.cpp +++ b/src/windows-emulator/module/module_mapping.cpp @@ -259,7 +259,7 @@ mapped_module map_module_from_file(memory_manager& memory, std::filesystem::path const auto data = utils::io::read_file(file); if (data.empty()) { - throw std::runtime_error("Bad file data"); + throw std::runtime_error("Bad file data: " + file.string()); } return map_module_from_data(memory, data, std::move(file));