diff --git a/example.php b/example.php index c422565..33d64d7 100644 --- a/example.php +++ b/example.php @@ -34,7 +34,7 @@ // Assume the worst. die('DANGER! DANGER! The ciphertext has been tampered with!'); } catch (Ex\CryptoTestFailed $ex) { - die('Cannot safely perform dencryption'); + die('Cannot safely perform decryption'); } catch (Ex\CannotPerformOperation $ex) { die('Cannot safely perform decryption'); } diff --git a/src/ExceptionHandler.php b/src/ExceptionHandler.php index 046b176..f8fd7de 100644 --- a/src/ExceptionHandler.php +++ b/src/ExceptionHandler.php @@ -31,7 +31,7 @@ public function handler($ex) $ex instanceof Ex\CannotPerformOperation || $ex instanceof Ex\CryptoTestFailed ) { - echo "FATAL ERROR: Uncaught crypto exception. Suppresssing output.\n"; + echo "FATAL ERROR: Uncaught crypto exception. Suppressing output.\n"; } else { /* Re-throw the exception in the destructor. */ $this->rethrow = $ex;