Forum Discussion
Bret_McGinnis_1
Nimbostratus
Sep 20, 2005TCL runtime errors
Hi, is there a way to capture and process iRule TCL runtime errors. On a few occasions I have created and tested an iRule and in our lab and it works fine. When I implement the iRule on a production B...
unRuleY_95363
Nov 16, 2005Historic F5 Account
Change it to only log the error if catch returns 1.
EG:
if { [catch {
...
} lb_selected] == 1 } {
log local0.error "iRule captured TCL error: $lb_selected"
}
If you re-read the above parts of this post, you'll see that catch actually returns 2 if a return statement is encountered.Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects