Minor fix
This commit is contained in:
parent
379cd0f247
commit
b842c8f7e5
@ -26,7 +26,7 @@ class Exception extends \Exception
|
|||||||
|
|
||||||
public function __toString()
|
public function __toString()
|
||||||
{
|
{
|
||||||
return $this->file === 'MadelineProto' ? $this->message : '\\danog\\MadelineProto\\Exception'.($this->message !== '' ? ': ' : '').$this->message.' in '.$this->file.':'.$this->line.PHP_EOL.\danog\MadelineProto\Magic::$revision.PHP_EOL.'TL Trace (YOU ABSOLUTELY MUST READ THE TEXT BELOW):'.PHP_EOL.$this->getTLTrace();
|
return $this->file === 'MadelineProto' ? $this->message : '\\danog\\MadelineProto\\Exception'.($this->message !== '' ? ': ' : '').$this->message.' in '.$this->file.':'.$this->line.PHP_EOL.\danog\MadelineProto\Magic::$revision.PHP_EOL.'TL Trace:'.PHP_EOL.$this->getTLTrace();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function __construct($message = null, $code = 0, self $previous = null, $file = null, $line = null)
|
public function __construct($message = null, $code = 0, self $previous = null, $file = null, $line = null)
|
||||||
|
@ -113,7 +113,7 @@ trait PrettyException
|
|||||||
|
|
||||||
if ($previous_trace) {
|
if ($previous_trace) {
|
||||||
$this->tl_trace .= $eol.$eol;
|
$this->tl_trace .= $eol.$eol;
|
||||||
$this->tl_trace .= "Previous TL trace$eol";
|
$this->tl_trace .= "Previous TL trace:$eol";
|
||||||
$this->tl_trace .= $previous_trace;
|
$this->tl_trace .= $previous_trace;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user