| ... | @@ -10936,9 +10936,12 @@ fn flushInner( | ... | @@ -10936,9 +10936,12 @@ fn flushInner( |
| 10936 | | 10936 | |
| 10937 | try elf.mf.flush(); | 10937 | try elf.mf.flush(); |
| 10938 | | 10938 | |
| 10939 | if (elf.options.enable_link_snapshots) | 10939 | if (elf.options.enable_link_snapshots) { |
| 10940 | elf.dumpStderr() catch |err| | 10940 | elf.dumpStderr() catch |err| switch (err) { |
| 10941 | return diags.fail("dumping link snapshot failed: {t}", .{err}); | 10941 | error.Canceled => |e| return e, |
| | 10942 | else => |e| return diags.fail("dumping link snapshot failed: {t}", .{e}), |
| | 10943 | }; |
| | 10944 | } |
| 10942 | } | 10945 | } |
| 10943 | | 10946 | |
| 10944 | pub fn idle(elf: *Elf) link.Error!bool { | 10947 | pub fn idle(elf: *Elf) link.Error!bool { |