{"action":"opened","issue":{"url":"https://api.github.com/repos/xetorthio/jedis/issues/1183","labels_url":"https://api.github.com/repos/xetorthio/jedis/issues/1183/labels{/name}","comments_url":"https://api.github.com/repos/xetorthio/jedis/issues/1183/comments","events_url":"https://api.github.com/repos/xetorthio/jedis/issues/1183/events","html_url":"https://github.com/xetorthio/jedis/issues/1183","id":122637629,"number":1183,"title":"Response exception after discarded a transaction","user":{"login":"yaxing","id":392918,"avatar_url":"https://avatars.githubusercontent.com/u/392918?v=3","gravatar_id":"","url":"https://api.github.com/users/yaxing","html_url":"https://github.com/yaxing","followers_url":"https://api.github.com/users/yaxing/followers","following_url":"https://api.github.com/users/yaxing/following{/other_user}","gists_url":"https://api.github.com/users/yaxing/gists{/gist_id}","starred_url":"https://api.github.com/users/yaxing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yaxing/subscriptions","organizations_url":"https://api.github.com/users/yaxing/orgs","repos_url":"https://api.github.com/users/yaxing/repos","events_url":"https://api.github.com/users/yaxing/events{/privacy}","received_events_url":"https://api.github.com/users/yaxing/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-17T00:50:19Z","updated_at":"2015-12-17T00:50:19Z","closed_at":null,"body":"Sample code:\r\n\r\n```\r\nJedis j = new Jedis(\"host\", port);\r\nTransaction t = j.multi();\r\nResponse<String> resp = t.get(\"key\");\r\nt.discard();\r\nString data = resp.get();\r\n```\r\n\r\nSuch exception got thrown at the last line: \r\n```\r\nredis.clients.jedis.exceptions.JedisDataException: Please close pipeline or multi block before calling this method.\r\n```\r\n\r\nI see that ```generateResponse``` is not called in [```discard()```](https://github.com/xetorthio/jedis/blob/master/src/main/java/redis/clients/jedis/Transaction.java#L78-L84). \r\n\r\nIs this expected? The confusing part is that it's the same exception where you forgot to call ```exec()``` and makes it hard to handle for a user. Is there any way to handle it better, maybe throwing a different exception saying the transaction got discarded?"}}