diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php
index 86a21a8e78..6fd145d6b8 100644
--- a/src/wp-includes/functions.php
+++ b/src/wp-includes/functions.php
@@ -3796,7 +3796,13 @@ function _default_wp_die_handler( $message, $title = '', $args = array() ) {
 </head>
 <body id="error-page">
 <?php endif; // ! did_action( 'admin_head' ) ?>
-	<?php echo $message; ?>
+	<?php 
+		if( is_array( $message ) ) {
+			print_r( $message );
+		} else {
+			echo $message;
+		}
+	?>
 </body>
 </html>
 	<?php
