| ... | @@ -10590,7 +10590,7 @@ fn zirSwitchBlockErrUnion(sema: *Sema, block: *Block, inst: Zir.Inst.Index) Comp | ... | @@ -10590,7 +10590,7 @@ fn zirSwitchBlockErrUnion(sema: *Sema, block: *Block, inst: Zir.Inst.Index) Comp |
| 10590 | break :err_union_ty raw_operand_ty.childType(zcu); | 10590 | break :err_union_ty raw_operand_ty.childType(zcu); |
| 10591 | }; | 10591 | }; |
| 10592 | if (err_union_ty.zigTypeTag(zcu) != .error_union) { | 10592 | if (err_union_ty.zigTypeTag(zcu) != .error_union) { |
| 10593 | return sema.fail(block, src, "expected error union type, found '{f}'", .{ | 10593 | return sema.fail(block, operand_src, "expected error union type, found '{f}'", .{ |
| 10594 | err_union_ty.fmt(pt), | 10594 | err_union_ty.fmt(pt), |
| 10595 | }); | 10595 | }); |
| 10596 | } | 10596 | } |