Doing something that throws out an error (warning):
ParallelTable[NIntegrate[1/Sin[10 t], {t, 0, W}], {W, 0, 10, 1}]
In parallel somehow limits a possiblity to harvest error messages like I usually do:
myMessageList = {};
Internal`InheritedBlock[{Message, $InMsg = False}, Unprotect[Message];
Message[msg_, vars___] /; ! $InMsg :=
Block[{$InMsg = True},
AppendTo[myMessageList, {HoldForm[msg], vars}];
Message[msg, vars]];
ParallelTable[NIntegrate[1/Sin[10 t], {t, 0, W}], {W, 0, 10, 1}]] (*this is the string that is being executed*)
myMessageList
This works for Table
just fine. Is there a way to avoid that? What I really need is to discard any output that produces an error.