adding some exception handling for magicenv parsing

This commit is contained in:
James Walker
2010-02-25 09:39:16 -05:00
parent bac959ad46
commit e62e49ed3b
2 changed files with 7 additions and 3 deletions

View File

@@ -59,7 +59,7 @@ class MagicEnvelope
$signer_uri = $this->normalizeUser($signer_uri);
if (!$this->checkAuthor($text, $signer_uri)) {
return false;
throw new Exception("Unable to determine entry author.");
}
$signature_alg = Magicsig::fromString($this->getKeyPair($signer_uri));