pothosware/PothosFlow

BlockEval doesn't distinguish between overlay() not being implemented and overlay() throwing an error

ncorgan opened this issue · 2 comments

When BlockEval calls a block's overlay() to get any custom updates for the block's display, it's done inside a try-catch that ignores the output on any error. However, the same behavior occurs if overlay() throws an exception or if it simply doesn't exist. In the case where the block throws an error inside overlay(), it would be helpful to log the error.

See here:

//the function may not exist, ignore error

Maybe i just need some good reflection support so the client class can ask if a block has an overlay. Or for that matter if any proxy object has a function, probably an addition to the proxy classes and their overloads.