diff --git a/Password Manager/ProcessBuilder.cs b/Password Manager/ProcessBuilder.cs index a454bac..41aefa6 100644 --- a/Password Manager/ProcessBuilder.cs +++ b/Password Manager/ProcessBuilder.cs @@ -34,8 +34,8 @@ namespace Password_Manager FileName = procName, Arguments = args, UseShellExecute = false, - RedirectStandardOutput = true; - CreateNoWindow = true; + RedirectStandardOutput = true, + CreateNoWindow = true } }; @@ -51,8 +51,8 @@ namespace Password_Manager return builder.ToString(); } catch (Exception e) { - MessageBox.Show(ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); - ProcessFailed.Invoke(e); + MessageBox.Show(e.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); + ProcessFailed?.Invoke(e); } return null;