diff --git a/Password Manager/MainForm.cs b/Password Manager/MainForm.cs index 2b76a3a..79b9f7c 100644 --- a/Password Manager/MainForm.cs +++ b/Password Manager/MainForm.cs @@ -31,7 +31,7 @@ namespace Password_Manager } else { - throw new InvalidOperationExpression("You cannot use the OpenPasswordGenerator method if you instantiated this form without a RecipientRequest event handler."); + throw new InvalidOperationException("You cannot use the OpenPasswordGenerator method if you instantiated this form without a RecipientRequest event handler."); } }