From e8146f9d01829b69a1b5b44a45a8abb917c8784d Mon Sep 17 00:00:00 2001 From: sterni Date: Sun, 9 Feb 2025 17:51:40 +0100 Subject: [PATCH] feat(sterni/blipqn): actually rethrow error messages in WithFlipdot MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Passing a namespace as 𝕩 to •CurrentError is not allowed since it is reserved for future use (not sure how it'll change the behavior exactly). Since WithFlipdot always passes a namespace as 𝕩, this is a relevant problem for blipqn. To work around it, we wrap the passed argument in a list (and unwrap it for 𝔾). Change-Id: I3382f754cbb64ad799e47b7d174d641c43a0f2e0 Reviewed-on: https://cl.tvl.fyi/c/depot/+/13125 Reviewed-by: sterni Autosubmit: sterni Tested-by: BuildkiteCI --- users/sterni/blipqn/blipqn.bqn | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/users/sterni/blipqn/blipqn.bqn b/users/sterni/blipqn/blipqn.bqn index 95b36c0d0..f78332fbd 100644 --- a/users/sterni/blipqn/blipqn.bqn +++ b/users/sterni/blipqn/blipqn.bqn @@ -35,7 +35,8 @@ MakeFlipdot ← { # the original error location, though. _defer_ ← { # can't use •CurrentError if 𝕩 is namespace: https://github.com/dzaima/cbqn/commit/d6609df82 - s‿r ← (1⊸⋈∘𝔾)⎊(0⊸⋈∘((6⊸=•Type)◶⟨•CurrentError,"_defer_: Unknown Error occurred"˙⟩)) 𝕩 ⋄ 𝔽 𝕩 ⋄ r⊣r!s; + # to avoid this problem, always wrap 𝕩 in a list and unwrap it before calling 𝔾 + s‿r ← (1⊸⋈∘𝔾∘⊑)⎊(0⊸⋈∘•CurrentError) ⋈𝕩 ⋄ 𝔽 𝕩 ⋄ r⊣r!s; (𝕨⊸𝔽) _𝕣_ (𝕨⊸𝔾) 𝕩 }