Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
UserAdminV2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
庄欣
UserAdminV2
Commits
cac5ebad
Commit
cac5ebad
authored
Apr 19, 2012
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #507 from sparksp/develop-patch-2
Don't show the trace on shutdown, it's useless.
parents
3670423d
56fac668
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
laravel/error.php
+7
-3
No files found.
laravel/error.php
View file @
cac5ebad
...
...
@@ -8,7 +8,7 @@ class Error {
* @param Exception $exception
* @return void
*/
public
static
function
exception
(
$exception
)
public
static
function
exception
(
$exception
,
$trace
=
true
)
{
static
::
log
(
$exception
);
...
...
@@ -23,10 +23,14 @@ class Error {
<h3>Message:</h3>
<pre>"
.
$exception
->
getMessage
()
.
"</pre>
<h3>Location:</h3>
<pre>"
.
$exception
->
getFile
()
.
" on line "
.
$exception
->
getLine
()
.
"</pre>
<pre>"
.
$exception
->
getFile
()
.
" on line "
.
$exception
->
getLine
()
.
"</pre>"
;
if
(
$trace
)
{
echo
"
<h3>Stack Trace:</h3>
<pre>"
.
$exception
->
getTraceAsString
()
.
"</pre></html>"
;
}
}
// If we're not using detailed error messages, we'll use the event
// system to get the response that should be sent to the browser.
...
...
@@ -83,7 +87,7 @@ class Error {
{
extract
(
$error
,
EXTR_SKIP
);
static
::
exception
(
new
\ErrorException
(
$message
,
$type
,
0
,
$file
,
$line
));
static
::
exception
(
new
\ErrorException
(
$message
,
$type
,
0
,
$file
,
$line
)
,
false
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment