prevent too long error reports
This commit is contained in:
1 parent
fcd4e577cf
commit
d7975e33b7
3 files changed
+12
-2
No files matched your search
@@ -138,6 +138,11 @@ class ErrorHandler {
|
||||
$traceString .= ' on Line ';
|
||||
$traceString .= $traceStep['line'];
|
||||
}
|
||||
if (strlen($traceString) > 1300) {
|
||||
// Too long...
|
||||
$traceString .= '...';
|
||||
break;
|
||||
}
|
||||
$stepCount++;
|
||||
}
|
||||
return $traceString;
|
||||
@@ -164,6 +169,11 @@ class ErrorHandler {
|
||||
if ($index < $argsCount - 1) {
|
||||
$string .= ', ';
|
||||
}
|
||||
if (strlen($string) > 100) {
|
||||
// Too long...
|
||||
$string .= '...';
|
||||
break;
|
||||
}
|
||||
}
|
||||
return $string;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user