From 499b8f2732f027bc5f4b7c40f0be804413c47949 Mon Sep 17 00:00:00 2001 From: James Shubin Date: Thu, 5 Jun 2025 20:36:15 -0400 Subject: [PATCH] lang: funcs: dage: Make error clearer The implementation of the specific function is sending a nil value, which is not allowed. This is a bug in the code of that function. --- lang/funcs/dage/dage.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lang/funcs/dage/dage.go b/lang/funcs/dage/dage.go index 386ffee9..97c2ee90 100644 --- a/lang/funcs/dage/dage.go +++ b/lang/funcs/dage/dage.go @@ -1290,9 +1290,10 @@ func (obj *Engine) Run(ctx context.Context) (reterr error) { for value := range node.output { // read from channel if value == nil { - // bug! - obj.Logf("func `%s` got nil value", node) - panic("got nil value") + // bug in implementation of that func! + s := fmt.Sprintf("func `%s` sent nil value", node) + obj.Logf(s) + panic(s) } obj.tableMutex.RLock()