In my test framework I would like to cut out the clutter that results from Prints/Writes/handled exceptions from my output file, so I tried executing test code inside of a Log Capture( Eval( testExpression ) ). My problem is that this seems to also silence any exceptions that get thrown when evaluating the testExpression, which I did not expect.
As an example:
Try(
logs = Log Capture(
Throw( "newsflash buddy!" );
);
Print( "Logs: " || logs );
,
Print( "Error:" || exception_msg )
);
I would like to get the logs, but still end up in the catch in case the code inside of the Capture throws.
Side-question: my thrown exception doesn't actually appear in the logs, which further confuses me as to why the capture silences it.