To allow for better error logging in shortcodes. Note that this may be expensive to calculate, so this is primarily for error situations. See #5371