From 2fd1d2f4f476a73c090034effcda2f404c970bdc Mon Sep 17 00:00:00 2001 From: Lee Rowlands Date: Tue, 26 Apr 2016 09:24:22 +1000 Subject: [PATCH] Fix sample code --- docs/Tutorial.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Tutorial.md b/docs/Tutorial.md index e7a652b..c5a4730 100644 --- a/docs/Tutorial.md +++ b/docs/Tutorial.md @@ -147,7 +147,7 @@ using the same key: $ciphertext = // ... load $ciphertext from the database try { $secret_data = Crypto::decrypt($ciphertext, $key); - } catch (Defuse\Crypto\WrongKeyOrModifiedCiphertextException) { + } catch (Defuse\Crypto\WrongKeyOrModifiedCiphertextException $e) { // An attack! Either the wrong key was loaded, or the ciphertext has // changed since it was created -- either corrupted in the database or // intentionally modified by Eve trying to carry out an attack.