mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-27 05:34:42 +01:00
Better errors
This commit is contained in:
parent
865a5841fd
commit
3347064ab8
@ -88,7 +88,7 @@ trait AuthKeyHandler
|
||||
}
|
||||
|
||||
if (!$pq->equals($p->multiply($q))) {
|
||||
throw new \danog\MadelineProto\SecurityException("couldn't compute p and q.");
|
||||
throw new \danog\MadelineProto\SecurityException("couldn't compute p and q. Original pq: $pq, computed p: $p, computed q: $q, computed pq: ".$p->multiply($q));
|
||||
}
|
||||
|
||||
\danog\MadelineProto\Logger::log(['Factorization '.$pq.' = '.$p.' * '.$q], \danog\MadelineProto\Logger::VERBOSE);
|
||||
|
Loading…
Reference in New Issue
Block a user