Improved InvalidRpcArgumentException handling

This commit is contained in:
netkas 2025-01-31 13:28:28 -05:00
parent 55137a93f2
commit 0ed6a36d50
11 changed files with 43 additions and 25 deletions

View file

@ -36,7 +36,7 @@
}
catch(InvalidArgumentException $e)
{
throw new InvalidRpcArgumentException('peer', $e->getMessage());
throw new InvalidRpcArgumentException('peer', $e);
}
if(!$rpcRequest->containsParameter('uuid'))
@ -50,7 +50,7 @@
}
catch(InvalidArgumentException $e)
{
throw new InvalidRpcArgumentException('uuid', $e->getMessage());
throw new InvalidRpcArgumentException('uuid', $e);
}
$signingKey = Socialbox::resolvePeerSignature($address, $uuid);