I would use a shell variable (e.g. var caFilterDebug) to switch error messages on/off.
Also we could extend the syntax to distinguish "important" from "unimportant" filters. E.g. prefixing important filters with + and/or prefixing unimportant filters with -:
I would use a shell variable (e.g. var caFilterDebug) to switch error messages on/off.
Also we could extend the syntax to distinguish "important" from "unimportant" filters. E.g. prefixing important filters with + and/or prefixing unimportant filters with -:
caget 'channel. {"+important_ filter" :"value" ,"-dont_ care_much" :42,"other_ filter" :{}}'
In that case + filters can cause errors that prevent connection, - filters can be silently ignored and filters without prefix can print a warning.
"filter", "-filter" and "+filter" would be the same filter, only error handling would be different.