From 0f7571901f14c405d8f092c0bc8c27b13188abff Mon Sep 17 00:00:00 2001 From: Sebastian Forouzani <106474355+SebFor90@users.noreply.github.com> Date: Wed, 26 Jul 2023 19:07:44 +0200 Subject: [PATCH] The variables in the error messages are in wrong order --- src/api/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/api/mod.rs b/src/api/mod.rs index 0485a28..58d3339 100644 --- a/src/api/mod.rs +++ b/src/api/mod.rs @@ -50,7 +50,7 @@ impl KeyGenResponse { let mrenclave: String = strip_0x_prefix!(mrenclave); let got_mrenclave = self.evidence.get_mrenclave()?; if mrenclave != got_mrenclave { - bail!("Received MRENCLAVE {got_mrenclave} does not match expected {mrenclave}") + bail!("Received MRENCLAVE {mrenclave} does not match expected {got_mrenclave}") } // Get the expected public key from payload @@ -74,7 +74,7 @@ impl KeyGenResponse { let mrenclave: String = strip_0x_prefix!(mrenclave); let got_mrenclave = self.evidence.get_mrenclave()?; if mrenclave != got_mrenclave { - bail!("Received MRENCLAVE {got_mrenclave} does not match expected {mrenclave}") + bail!("Received MRENCLAVE {mrenclave} does not match expected {got_mrenclave}") } // Verify the payload @@ -129,4 +129,4 @@ impl KeyImportResponse { KeyImportResponse { data: [data] } } -} \ No newline at end of file +}