Better errors

This commit is contained in:
Daniil Gentili 2017-08-21 07:43:34 +00:00
parent 865a5841fd
commit 3347064ab8

View File

@ -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);