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.
This commit is contained in:
@@ -1290,9 +1290,10 @@ func (obj *Engine) Run(ctx context.Context) (reterr error) {
|
|||||||
|
|
||||||
for value := range node.output { // read from channel
|
for value := range node.output { // read from channel
|
||||||
if value == nil {
|
if value == nil {
|
||||||
// bug!
|
// bug in implementation of that func!
|
||||||
obj.Logf("func `%s` got nil value", node)
|
s := fmt.Sprintf("func `%s` sent nil value", node)
|
||||||
panic("got nil value")
|
obj.Logf(s)
|
||||||
|
panic(s)
|
||||||
}
|
}
|
||||||
|
|
||||||
obj.tableMutex.RLock()
|
obj.tableMutex.RLock()
|
||||||
|
|||||||
Reference in New Issue
Block a user