CFSaveContent does not capture output up to the point where an exception is raised

Description

Problem Description:

If I wrap cfsavecontent around a call to capture the output and that call outputs some text and then raises an exception. cfsavecontent fails to capture the next that was output prior to the exception and instead captures nothing.

Steps to Reproduce:

Actual Result:

Expected Result:

The out variable should exist and contain the contents of the buffer that was output prior to the exception.

Any Workarounds:

I found this hacky workaround where I prevent the error from hitting the cfsavecontent and then rethrow it later after capturing the output.

Environment

None

Assignee

Michael Offner

Reporter

Brad Wood

Priority

New

Labels

None

Fix versions

None
Configure