{"action":"created","issue":{"url":"https://api.github.com/repos/git-ftp/git-ftp/issues/9","labels_url":"https://api.github.com/repos/git-ftp/git-ftp/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/git-ftp/git-ftp/issues/9/comments","events_url":"https://api.github.com/repos/git-ftp/git-ftp/issues/9/events","html_url":"https://github.com/git-ftp/git-ftp/issues/9","id":14475541,"number":9,"title":"Not always returning an error code on FTP error","user":{"login":"cjwprostar","id":2379325,"avatar_url":"https://avatars.githubusercontent.com/u/2379325?v=3","gravatar_id":"","url":"https://api.github.com/users/cjwprostar","html_url":"https://github.com/cjwprostar","followers_url":"https://api.github.com/users/cjwprostar/followers","following_url":"https://api.github.com/users/cjwprostar/following{/other_user}","gists_url":"https://api.github.com/users/cjwprostar/gists{/gist_id}","starred_url":"https://api.github.com/users/cjwprostar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjwprostar/subscriptions","organizations_url":"https://api.github.com/users/cjwprostar/orgs","repos_url":"https://api.github.com/users/cjwprostar/repos","events_url":"https://api.github.com/users/cjwprostar/events{/privacy}","received_events_url":"https://api.github.com/users/cjwprostar/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/git-ftp/git-ftp/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2013-05-17T23:21:53Z","updated_at":"2015-02-17T23:47:10Z","closed_at":null,"body":"When FTPing multiple files, if one of them can't be FTPed, git-ftp still returns a success.\r\n\r\nIn this specific case, I ran git-ftp after updating two files: one file could be uploaded fine, but another encountered a 550 (access denied) error. git-ftp did not return an error. If I just run git-ftp after changing the file that causes the error, git-ftp will return an error (4 : Error while uploading). Is there a way to set the error code when any FTP error like this occurs?\r\n\r\n````\r\nHaving changed files.\r\nThere are 2 files to sync:\r\n[1 of 2] Buffered for upload 'file1'.\r\n[2 of 2] Buffered for upload 'file2'.\r\nUploading ...\r\n* About to connect() to my.server.com port XX (#0)\r\n*   Trying XXX.XXX.XXX.XXX... connected\r\n* Connected to my.server.com (XXX.XXX.XXX.XXX) port XX (#0)\r\n< 220 Microsoft FTP Service\r\n> USER XXXXXXX\r\n< 331 Password required for XXXXXXX.\r\n> PASS XXXXXXXXX\r\n< 230 User XXXXXXX logged in.\r\n> PWD\r\n< 257 \"/\" is current directory.\r\n* Entry path is '/'\r\n> CWD my_dir\r\n< 250 CWD command successful.\r\n> EPSV\r\n* Connect data stream passively\r\n< 500 'EPSV': command not understood\r\n* disabling EPSV usage\r\n> PASV\r\n< 227 Entering Passive Mode (XXX,XXX,XXX,XXX,XXX,XXX).\r\n*   Trying XXX.XXX.XXX.XXX... connected\r\n* Connecting to XXX.XXX.XXX.XXX (XXX.XXX.XXX.XXX) port XXXXX\r\n> TYPE I\r\n< 200 Type set to I.\r\n> STOR file1\r\n< 550 file1: Access is denied. \r\n* Failed FTP upload: 550\r\n* Remembering we are in dir \"my_dir/\"\r\n* Uploaded unaligned file size (0 out of 228 bytes)\r\n* Connection #0 to host my.server.com left intact\r\n\r\ncurl: (25) Failed FTP upload: 550\r\n* Re-using existing connection! (#0) with host my.server.com\r\n* Connected to my.server.com (XXX.XXX.XXX.XXX) port XX (#0)\r\n* Request has same path as previous transfer\r\n> PASV\r\n* Connect data stream passively\r\n< 227 Entering Passive Mode (XXX,XXX,XXX,XXX,XXX,XXX).\r\n*   Trying XXX.XXX.XXX.XXX... connected\r\n* Connecting to XXX.XXX.XXX.XXX (XXX.XXX.XXX.XXX) port XXXXX\r\n> STOR file2\r\n< 125 Data connection already open; Transfer starting.\r\n} [data not shown]\r\n\r\n######################################################################## 100.0%\r\n######################################################################## 100.0%\r\n######################################################################## 100.0%* Remembering we are in dir \"my_dir/\"\r\n< 226 Transfer complete.\r\n\r\n######################################################################## 100.0%* Connection #0 to host my.server.com left intact\r\n\r\n> QUIT\r\n\r\n######################################################################## 100.0%< 221  \r\n* Closing connection #0\r\n````\r\nThe log goes on about updating the .git-ftp.log file successfully."},"comment":{"url":"https://api.github.com/repos/git-ftp/git-ftp/issues/comments/74781050","html_url":"https://github.com/git-ftp/git-ftp/issues/9#issuecomment-74781050","issue_url":"https://api.github.com/repos/git-ftp/git-ftp/issues/9","id":74781050,"user":{"login":"mkllnk","id":3524483,"avatar_url":"https://avatars.githubusercontent.com/u/3524483?v=3","gravatar_id":"","url":"https://api.github.com/users/mkllnk","html_url":"https://github.com/mkllnk","followers_url":"https://api.github.com/users/mkllnk/followers","following_url":"https://api.github.com/users/mkllnk/following{/other_user}","gists_url":"https://api.github.com/users/mkllnk/gists{/gist_id}","starred_url":"https://api.github.com/users/mkllnk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkllnk/subscriptions","organizations_url":"https://api.github.com/users/mkllnk/orgs","repos_url":"https://api.github.com/users/mkllnk/repos","events_url":"https://api.github.com/users/mkllnk/events{/privacy}","received_events_url":"https://api.github.com/users/mkllnk/received_events","type":"User","site_admin":false},"created_at":"2015-02-17T23:47:10Z","updated_at":"2015-02-17T23:47:10Z","body":"Curl has the option `--retry "}}