Got invalid public key: {public_key}

This commit is contained in:
mbecker20
2025-09-22 02:13:59 -07:00
parent 531c79a144
commit 198f690ca5
2 changed files with 2 additions and 2 deletions

View File

@@ -131,7 +131,7 @@ impl PublicKeyValidator for PeripheryPublicKeyValidator<'_> {
&& public_key != expected
{
Err(
anyhow!("Invalid public key '{public_key}'")
anyhow!("Got invalid public key: {public_key}")
.context("Ensure public key matches configured Periphery Public Key")
.context("Core failed to validate Periphery public key"),
)

View File

@@ -159,7 +159,7 @@ impl PublicKeyValidator for CorePublicKeyValidator {
&& &public_key != expected_public_key
{
Err(
anyhow!("Invalid public key '{public_key}'")
anyhow!("Got invalid public key: {public_key}")
.context("Ensure public key matches 'core_public_key' in periphery config (PERIPHERY_CORE_PUBLIC_KEY)")
.context("Periphery failed to validate Core public key"),
)