Feb 26, 2013; 16:47
Jussi Hirvi
Error handling with ctags
What would be a good way to handle errors occurring in ctags?
For example I now have a tag which processes search form input. The tag
does some consistency checks on the environment. If errors are detected,
the tag returns
return(map(-err='errormessage'))
Otherwise it returns
return(map(-searchparams=#searchparams))
In my processual code I call the tag like this:
local('i') = MO_searchparams($searchfields);
if(#i -> find(-err));
MO_flash(#i -> find(-err),-class='error');
abort;
/if;
var('searchparams') = #i -> find(-searchparams);
This works ok, but is a little clumsy. Any better ideas? Should be L8
compatible.
- Jussi
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso
Lasso@lists.lassosoft.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>
Feb 26, 2013; 17:00
Brad Lindsay
Re: Error handling with ctags