Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion example.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
2 changes: 1 addition & 1 deletion src/ExceptionHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down