{"action":"opened","issue":{"url":"https://api.github.com/repos/influxdata/influxdb/issues/5475","labels_url":"https://api.github.com/repos/influxdata/influxdb/issues/5475/labels{/name}","comments_url":"https://api.github.com/repos/influxdata/influxdb/issues/5475/comments","events_url":"https://api.github.com/repos/influxdata/influxdb/issues/5475/events","html_url":"https://github.com/influxdata/influxdb/issues/5475","id":129613152,"number":5475,"title":"Influx Client return code is always zero","user":{"login":"rossmcdonald","id":4060903,"avatar_url":"https://avatars.githubusercontent.com/u/4060903?v=3","gravatar_id":"","url":"https://api.github.com/users/rossmcdonald","html_url":"https://github.com/rossmcdonald","followers_url":"https://api.github.com/users/rossmcdonald/followers","following_url":"https://api.github.com/users/rossmcdonald/following{/other_user}","gists_url":"https://api.github.com/users/rossmcdonald/gists{/gist_id}","starred_url":"https://api.github.com/users/rossmcdonald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rossmcdonald/subscriptions","organizations_url":"https://api.github.com/users/rossmcdonald/orgs","repos_url":"https://api.github.com/users/rossmcdonald/repos","events_url":"https://api.github.com/users/rossmcdonald/events{/privacy}","received_events_url":"https://api.github.com/users/rossmcdonald/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/influxdata/influxdb/labels/category/error%20handling","name":"category/error handling","color":"bfd4f2"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-28T23:07:43Z","updated_at":"2016-01-28T23:07:43Z","closed_at":null,"body":"InfluxDB version:\r\n\r\n```\r\nInfluxDB v0.10.0.n1453968035 (git: master d771eb72f708c523bb2bec35a97f6bb83ae4ef1d, built 2016-01-28T08:01:46.209415)\r\n```\r\n\r\nReturn codes are always zero, regardless of success of command:\r\n\r\n```\r\nvagrant@influx1:~$ influx -execute 'show tag keys' -database 'sample_database'\r\nERR: write message type: use of closed network connection\r\nvagrant@influx1:~$ echo $?\r\n0\r\nvagrant@influx1:~$ influx -execute 'show tag keys' -database 'banana'\r\nERR: database not found: banana\r\nvagrant@influx1:~$ echo $?\r\n0\r\nvagrant@influx1:~$ influx -execute 'kazoo' -database 'banana'\r\nERR: error parsing query: found kazoo, expected SELECT, DELETE, SHOW, CREATE, DROP, GRANT, REVOKE, ALTER, SET at line 1, char 1\r\nvagrant@influx1:~$ echo $?\r\n0\r\n```\r\n\r\nEven when executing incorrect commands, or attempting to access non-existent databases."}}