R = catch foo() ?
Fri Mar 14 22:56:58 CET 2003
Why is this ok:
case catch foo() of
R -> ....
and this is not?
R = catch foo(),
Reason I ask is, I know foo is failing, so I wanted to
catch it instead of just saying:
R = foo()
for debug reasons to see why. In real production this
is being caught by a standard supervisor behavior and
is being restarted, but the supervisor won't restart if
the app doesn't start at least once successfully.
Don't you feel more like you do now than you did when you came in?
More information about the erlang-questions