Skip to content
This repository has been archived by the owner on Mar 4, 2018. It is now read-only.

Commit

Permalink
Fix for bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
worksofliam committed Aug 11, 2017
1 parent 077528a commit 53d6c44
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions IBMiTools/IBMi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ class IBMi
readonly static Dictionary<string, string> FTPCodeMessages = new Dictionary<string, string>()
{
{ "426", "Connection closed; transfer aborted." },
{ "530", "Configuration username and password incorrect." },
{ "550", "File being accessed may not exist." }
{ "530", "Configuration username and password incorrect." }
};

public static string _ConfigFile { get; set; }
Expand Down Expand Up @@ -236,7 +235,8 @@ private static Boolean RunFTP(string FileLoc)
}
else if (_Failed != "")
{
MessageBox.Show(FTPCodeMessages[_Failed], "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
if (FTPCodeMessages.ContainsKey(_Failed))
MessageBox.Show(FTPCodeMessages[_Failed], "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
}

return _Failed != "" || _NotConnected;
Expand Down

0 comments on commit 53d6c44

Please sign in to comment.