<?php
/**
 * Elgg exception (failsafe mode)
 * Displays a single exception
 *
 * @tip Enable "developers" to give admins a stacktrace view.
 *
 * @uses $vars['object'] An exception
 */

$exception = elgg_extract('object', $vars);
if (!$exception instanceof Throwable) {
	return;
}

?>
<div class="elgg-messages-exception">
	<span title="Unrecoverable Error">
		<?php echo elgg_echo('exception:contact_admin'); ?>
		<br/><br/>
		Exception at time <?php echo date(DATE_W3C, elgg_extract('ts', $vars)); ?>.
	</span>
</div>
