Skip to content

Commit

Permalink
The variables in the error messages are in wrong order
Browse files Browse the repository at this point in the history
  • Loading branch information
SebForz authored Jul 26, 2023
1 parent b8b9edd commit 0f75719
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/api/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -129,4 +129,4 @@ impl KeyImportResponse {

KeyImportResponse { data: [data] }
}
}
}

0 comments on commit 0f75719

Please sign in to comment.