{"action":"created","issue":{"url":"https://api.github.com/repos/tickbin/tickbin/issues/277","repository_url":"https://api.github.com/repos/tickbin/tickbin","labels_url":"https://api.github.com/repos/tickbin/tickbin/issues/277/labels{/name}","comments_url":"https://api.github.com/repos/tickbin/tickbin/issues/277/comments","events_url":"https://api.github.com/repos/tickbin/tickbin/issues/277/events","html_url":"https://github.com/tickbin/tickbin/issues/277","id":173887227,"number":277,"title":"tick timer with no timer gives two redundant messages","user":{"login":"jonotron","id":349600,"avatar_url":"https://avatars.githubusercontent.com/u/349600?v=3","gravatar_id":"","url":"https://api.github.com/users/jonotron","html_url":"https://github.com/jonotron","followers_url":"https://api.github.com/users/jonotron/followers","following_url":"https://api.github.com/users/jonotron/following{/other_user}","gists_url":"https://api.github.com/users/jonotron/gists{/gist_id}","starred_url":"https://api.github.com/users/jonotron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonotron/subscriptions","organizations_url":"https://api.github.com/users/jonotron/orgs","repos_url":"https://api.github.com/users/jonotron/repos","events_url":"https://api.github.com/users/jonotron/events{/privacy}","received_events_url":"https://api.github.com/users/jonotron/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tickbin/tickbin/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-29T22:22:42Z","updated_at":"2016-08-29T22:29:18Z","closed_at":null,"body":"I think this might be a small bug?\r\n\r\nif I have no timers going and I run `tick timer` I get two lines of error messages:\r\n\r\n    Could not list your timer\r\n    You do not have a timer started\r\n\r\n![jonotron jonathans-macbook-pro 2016-08-29 15-20-07](https://cloud.githubusercontent.com/assets/349600/18069479/37bb97a0-6dfc-11e6-81eb-87976c519484.jpg)\r\n\r\nI think the more appropriate message here should be the last one, 'You do not have a timer started', maybe with some helpful text 'Try starting one with tick start'\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/tickbin/tickbin/issues/comments/243277367","html_url":"https://github.com/tickbin/tickbin/issues/277#issuecomment-243277367","issue_url":"https://api.github.com/repos/tickbin/tickbin/issues/277","id":243277367,"user":{"login":"chadfawcett","id":3250463,"avatar_url":"https://avatars.githubusercontent.com/u/3250463?v=3","gravatar_id":"","url":"https://api.github.com/users/chadfawcett","html_url":"https://github.com/chadfawcett","followers_url":"https://api.github.com/users/chadfawcett/followers","following_url":"https://api.github.com/users/chadfawcett/following{/other_user}","gists_url":"https://api.github.com/users/chadfawcett/gists{/gist_id}","starred_url":"https://api.github.com/users/chadfawcett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chadfawcett/subscriptions","organizations_url":"https://api.github.com/users/chadfawcett/orgs","repos_url":"https://api.github.com/users/chadfawcett/repos","events_url":"https://api.github.com/users/chadfawcett/events{/privacy}","received_events_url":"https://api.github.com/users/chadfawcett/received_events","type":"User","site_admin":false},"created_at":"2016-08-29T22:29:18Z","updated_at":"2016-08-29T22:29:18Z","body":"This was done on purpose. Basically the \"Could not list your timer\" is the main message in the catch statement. The second is a more specific message on what caused the error. See (https://github.com/tickbin/tickbin/blob/049f34bf8f98851176b081817dc57d3e1c09cc6d/src/commands/tick-timer.js#L16) and (https://github.com/tickbin/tickbin/blob/049f34bf8f98851176b081817dc57d3e1c09cc6d/src/timers.js#L65)\r\n\r\nI'm open to making it a shorter message though."}}
{"actor":{"display_login":"chadfawcett"}}