Forum Discussion
Russell_E_Glaue
Nimbostratus
Feb 16, 2009no such pool Failed Tcl_pool_GetFromObj
I am receiving this error message, and cannot determine why it is occurring. I cannot even use TCL 'catch' to catch the error.
Feb 16 13:22:48 tmm tmm[1568]: 01220001:3: TCL error: dist...
hoolio
Cirrostratus
Feb 17, 2009Sorry... I wasn't sure which part you were asking about. I think the problem is with the syntax you were using. If you wrap the statement being caught in square brackets [ ], that gets executed and is not handled as expected by catch. If you use curly braces { }, it should work and give you the output in $result.
Here is an example which shows the catch result:
when HTTP_REQUEST {
set pool_name "non_existent_pool"
if {[catch {pool $pool_name} result]}{
log local0. "Caught error: $result"
}
}
The logged value for $result is:
Caught error: no such pool
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
