Can I Quiet
my procedure and still get messages info from inner EvaluationData
?
This works fine:
EvaluationData[1/0]["MessagesExpressions"]
{Hold[Message[Power::infy, 1/0]]}
but I don't want to propagate messages up so I use Quiet
:
Quiet @ EvaluationData[1/0]["MessagesExpressions"]
{}
I didn't expect that since Quiet
is outer to EvaluationData
.
It seems inconsistent with respect to Check
behavior:
Quiet @ Check[1/0, err]
err
Here inner messages are captured correctly.
What am I missing?