If I evaluate this expression:
Module[{}, 1/0;0^0]; msg = $MessageList
I get:
"Power::infy: Infinite expression 1/0 encountered. >>"
"Power::indet: Indeterminate expression 0^0 encountered. >>"
{Power::infy,mrtError::function}
How can I collect the complete error messages in msg
, instead of just the first part?
Something for msg
like:
{"Power::infy: Infinite expression 1/0 encountered. >>"
,"Power::indet: Indeterminate expression 0^0 encountered. >>"}
Some clue?