small reasonable change

This commit is contained in:
mlugg 2025-09-09 08:48:52 +01:00
parent 2743fdb7ce
commit e6adddf80c
No known key found for this signature in database
GPG Key ID: 3F5B7DCCBF4AF02E

View File

@ -142,7 +142,7 @@ fn loadDebugInfo(module: *const WindowsModule, gpa: Allocator, di: *DebugInfo) !
try di.dwarf.?.open(gpa, native_endian);
}
if (try coff_obj.getPdbPath()) |raw_path| pdb: {
if (coff_obj.getPdbPath() catch return error.InvalidDebugInfo) |raw_path| pdb: {
const path = blk: {
if (fs.path.isAbsolute(raw_path)) {
break :blk raw_path;