inline fun captureStandardErr(fn: () -> Unit): String
A wrapper function that captures any writes to standard error.