Commit 4fc4d040 authored by Taylor Otwell's avatar Taylor Otwell

Improved error exception view.

parent 54311a41
...@@ -2,64 +2,101 @@ ...@@ -2,64 +2,101 @@
<html> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>Laravel - Error</title> <title>Laravel - <?php echo $severity; ?></title>
<link href='http://fonts.googleapis.com/css?family=Ubuntu&amp;subset=latin' rel='stylesheet' type='text/css'> <link href="http://fonts.googleapis.com/css?family=Quattrocento&amp;v1" rel="stylesheet" type="text/css" media="all" />
<link href="http://fonts.googleapis.com/css?family=Ubuntu&amp;v1" rel="stylesheet" type="text/css" media="all" />
<link href="http://fonts.googleapis.com/css?family=Lobster+Two&amp;v1" rel="stylesheet" type="text/css" media="all" />
<style type="text/css"> <style type="text/css">
body { body {
background-color: #fff; background-color: #eee;
font-family: 'Ubuntu', sans-serif; color: #6d6d6d;
font-size: 18px; font-family: 'Ubuntu';
color: #3f3f3f; font-size: 15px;
padding: 10px;
} }
h1 { h1.laravel {
font-family: 'Ubuntu', sans-serif; font-family: 'Lobster Two', Helvetica, serif;
font-size: 45px; font-size: 60px;
color: #6d6d6d; margin: 0 0 15px -10px;
margin: 0 0 10px 0; padding: 0;
text-shadow: 1px 1px #000; text-shadow: -1px 1px 1px #fff;
} }
h3 { h2 {
color: #6d6d6d; font-family: 'Quattrocento', serif;
margin: 0 0 10px 0; font-size: 30px;
margin: 30px 0 0 0;
padding: 0;
text-shadow: -1px 1px 1px #fff;
}
p {
margin: 10px 0 0 0;
line-height: 25px;
} }
pre { pre {
font-size: 14px; font-size: 12px;
margin: 0 0 0 0;
padding: 0 0 0 0;
} }
#wrapper { pre.context {
width: 100%; margin: 0; padding: 0;
} }
div.content { .strong {
padding: 10px 10px 10px 10px; font-weight: bold;
background-color: #eee; color: #990000;
}
#wrapper {
background-color: #fff;
border-radius: 10px; border-radius: 10px;
margin-bottom: 10px; margin: 0 auto;
padding: 10px;
width: 80%;
}
#wrapper h2:first-of-type {
margin-top: 0;
}
#header {
margin: 0 auto;
margin-bottom: 15px;
margin-top: 20px;
width: 80%;
} }
</style> </style>
</head> </head>
<body> <body>
<div id="header">
<h1 class="laravel"><?php echo $severity; ?></h1>
</div>
<div id="wrapper"> <div id="wrapper">
<h1><?php echo $severity; ?></h1> <h2>Message:</h2>
<div class="content"> <p><?php echo $message; ?> in <strong><?php echo basename($file); ?></strong> on line <strong><?php echo $line; ?></strong>.</p>
<h3>Message:</h3>
<?php echo $message; ?> in <strong><?php echo basename($file); ?></strong> on line <strong><?php echo $line; ?></strong>. <h2>Stack Trace:</h2>
</div>
<pre><?php echo $trace; ?></pre>
<h2>Snapshot:</h2>
<p>
<?php if (count($contexts) > 0): ?>
<div class="content"> <?php foreach($contexts as $num => $context): ?>
<h3>Stack Trace:</h3> <pre class="context <?php echo ($line == $num) ? 'strong' : ''; ?>"><?php echo htmlentities($num.': '.$context); ?></pre>
<?php endforeach; ?>
<pre><?php echo $trace; ?></pre> <?php else: ?>
</div> Snapshot Unavailable.
<?php endif; ?>
</p>
</div> </div>
</body> </body>
</html> </html>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment