{"action":"created","comment":{"url":"https://api.github.com/repos/appcelerator/titanium_mobile/pulls/comments/29016135","id":29016135,"diff_hunk":"@@ -126,7 +126,14 @@ exports.config = function (logger, config, cli) {\n \n \t\t\t\t\t\t\t\t\t// check that the Titanium SDK version is correct\n \t\t\t\t\t\t\t\t\tif (!ti.validateCorrectSDK(logger, config, cli, 'build')) {\n-\t\t\t\t\t\t\t\t\t\tthrow new cli.GracefulShutdown();\n+\t\t\t\t\t\t\t\t\t\tvar dm = require('domain').create();\n+\t\t\t\t\t\t\t\t\t\tdm.on('error', function(err) {\n+\t\t\t\t\t\t\t\t\t\t\t// handle the error safely and silently\n+\t\t\t\t\t\t\t\t\t\t});\n+\n+\t\t\t\t\t\t\t\t\t\tdm.run(function() {\n+\t\t\t\t\t\t\t\t\t\t\tthrow new cli.GracefulShutdown();\n+\t\t\t\t\t\t\t\t\t\t});","path":"cli/commands/build.js","position":12,"original_position":12,"commit_id":"ae990aaa2a8336dcb0d902aeb802a6f51fe382b3","original_commit_id":"ae990aaa2a8336dcb0d902aeb802a6f51fe382b3","user":{"login":"cb1kenobi","id":97262,"avatar_url":"https://avatars.githubusercontent.com/u/97262?v=3","gravatar_id":"","url":"https://api.github.com/users/cb1kenobi","html_url":"https://github.com/cb1kenobi","followers_url":"https://api.github.com/users/cb1kenobi/followers","following_url":"https://api.github.com/users/cb1kenobi/following{/other_user}","gists_url":"https://api.github.com/users/cb1kenobi/gists{/gist_id}","starred_url":"https://api.github.com/users/cb1kenobi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cb1kenobi/subscriptions","organizations_url":"https://api.github.com/users/cb1kenobi/orgs","repos_url":"https://api.github.com/users/cb1kenobi/repos","events_url":"https://api.github.com/users/cb1kenobi/events{/privacy}","received_events_url":"https://api.github.com/users/cb1kenobi/received_events","type":"User","site_admin":false},"body":"I'd need to test this, but I'm 99% sure this is the wrong way to solve this.","created_at":"2015-04-24T00:33:30Z","updated_at":"2015-04-24T00:33:30Z","html_url":"https://github.com/appcelerator/titanium_mobile/pull/6801#discussion_r29016135","pull_request_url":"https://api.github.com/repos/appcelerator/titanium_mobile/pulls/6801","_links":{"self":{"href":"https://api.github.com/repos/appcelerator/titanium_mobile/pulls/comments/29016135"},"html":{"href":"https://github.com/appcelerator/titanium_mobile/pull/6801#discussion_r29016135"},"pull_request":{"href":"https://api.github.com/repos/appcelerator/titanium_mobile/pulls/6801"}}},"pull_request":{"url":"https://api.github.com/repos/appcelerator/titanium_mobile/pulls/6801","id":33943894,"html_url":"https://github.com/appcelerator/titanium_mobile/pull/6801","diff_url":"https://github.com/appcelerator/titanium_mobile/pull/6801.diff","patch_url":"https://github.com/appcelerator/titanium_mobile/pull/6801.patch","issue_url":"https://api.github.com/repos/appcelerator/titanium_mobile/issues/6801","number":6801,"state":"open","locked":false,"title":"[TIMOB-18826] appc/ti CLI -d switch is broken","user":{"login":"feons","id":7485592,"avatar_url":"https://avatars.githubusercontent.com/u/7485592?v=3","gravatar_id":"","url":"https://api.github.com/users/feons","html_url":"https://github.com/feons","followers_url":"https://api.github.com/users/feons/followers","following_url":"https://api.github.com/users/feons/following{/other_user}","gists_url":"https://api.github.com/users/feons/gists{/gist_id}","starred_url":"https://api.github.com/users/feons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/feons/subscriptions","organizations_url":"https://api.github.com/users/feons/orgs","repos_url":"https://api.github.com/users/feons/repos","events_url":"https://api.github.com/users/feons/events{/privacy}","received_events_url":"https://api.github.com/users/feons/received_events","type":"User","site_admin":false},"body":"https://jira.appcelerator.org/browse/TIMOB-18826","created_at":"2015-04-23T10:50:13Z","updated_at":"2015-04-24T00:33:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"380df6d0ab4b2468e085e2139da0d8c927c5a80b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/appcelerator/titanium_mobile/pulls/6801/commits","review_comments_url":"https://api.github.com/repos/appcelerator/titanium_mobile/pulls/6801/comments","review_comment_url":"https://api.github.com/repos/appcelerator/titanium_mobile/pulls/comments{/number}","comments_url":"https://api.github.com/repos/appcelerator/titanium_mobile/issues/6801/comments","statuses_url":"https://api.github.com/repos/appcelerator/titanium_mobile/statuses/ae990aaa2a8336dcb0d902aeb802a6f51fe382b3","head":{"label":"feons:TIMOB-18826","ref":"TIMOB-18826","sha":"ae990aaa2a8336dcb0d902aeb802a6f51fe382b3","user":{"login":"feons","id":7485592,"avatar_url":"https://avatars.githubusercontent.com/u/7485592?v=3","gravatar_id":"","url":"https://api.github.com/users/feons","html_url":"https://github.com/feons","followers_url":"https://api.github.com/users/feons/followers","following_url":"https://api.github.com/users/feons/following{/other_user}","gists_url":"https://api.github.com/users/feons/gists{/gist_id}","starred_url":"https://api.github.com/users/feons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/feons/subscriptions","organizations_url":"https://api.github.com/users/feons/orgs","repos_url":"https://api.github.com/users/feons/repos","events_url":"https://api.github.com/users/feons/events{/privacy}","received_events_url":"https://api.github.com/users/feons/received_events","type":"User","site_admin":false},"repo":{"id":22831566,"name":"titanium_mobile","full_name":"feons/titanium_mobile","owner":{"login":"feons","id":7485592,"avatar_url":"https://avatars.githubusercontent.com/u/7485592?v=3","gravatar_id":"","url":"https://api.github.com/users/feons","html_url":"https://github.com/feons","followers_url":"https://api.github.com/users/feons/followers","following_url":"https://api.github.com/users/feons/following{/other_user}","gists_url":"https://api.github.com/users/feons/gists{/gist_id}","starred_url":"https://api.github.com/users/feons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/feons/subscriptions","organizations_url":"https://api.github.com/users/feons/orgs","repos_url":"https://api.github.com/users/feons/repos","events_url":"https://api.github.com/users/feons/events{/privacy}","received_events_url":"https://api.github.com/users/feons/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/feons/titanium_mobile","description":"Appcelerator Titanium Mobile","fork":true,"url":"https://api.github.com/repos/feons/titanium_mobile","forks_url":"https://api.github.com/repos/feons/titanium_mobile/forks","keys_url":"https://api.github.com/repos/feons/titanium_mobile/keys{/key_id}","collaborators_url":"https://api.github.com/repos/feons/titanium_mobile/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/feons/titanium_mobile/teams","hooks_url":"https://api.github.com/repos/feons/titanium_mobile/hooks","issue_events_url":"https://api.github.com/repos/feons/titanium_mobile/issues/events{/number}","events_url":"https://api.github.com/repos/feons/titanium_mobile/events","assignees_url":"https://api.github.com/repos/feons/titanium_mobile/assignees{/user}","branches_url":"https://api.github.com/repos/feons/titanium_mobile/branches{/branch}","tags_url":"https://api.github.com/repos/feons/titanium_mobile/tags","blobs_url":"https://api.github.com/repos/feons/titanium_mobile/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/feons/titanium_mobile/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/feons/titanium_mobile/git/refs{/sha}","trees_url":"https://api.github.com/repos/feons/titanium_mobile/git/trees{/sha}","statuses_url":"https://api.github.com/repos/feons/titanium_mobile/statuses/{sha}","languages_url":"https://api.github.com/repos/feons/titanium_mobile/languages","stargazers_url":"https://api.github.com/repos/feons/titanium_mobile/stargazers","contributors_url":"https://api.github.com/repos/feons/titanium_mobile/contributors","subscribers_url":"https://api.github.com/repos/feons/titanium_mobile/subscribers","subscription_url":"https://api.github.com/repos/feons/titanium_mobile/subscription","commits_url":"https://api.github.com/repos/feons/titanium_mobile/commits{/sha}","git_commits_url":"https://api.github.com/repos/feons/titanium_mobile/git/commits{/sha}","comments_url":"https://api.github.com/repos/feons/titanium_mobile/comments{/number}","issue_comment_url":"https://api.github.com/repos/feons/titanium_mobile/issues/comments{/number}","contents_url":"https://api.github.com/repos/feons/titanium_mobile/contents/{+path}","compare_url":"https://api.github.com/repos/feons/titanium_mobile/compare/{base}...{head}","merges_url":"https://api.github.com/repos/feons/titanium_mobile/merges","archive_url":"https://api.github.com/repos/feons/titanium_mobile/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/feons/titanium_mobile/downloads","issues_url":"https://api.github.com/repos/feons/titanium_mobile/issues{/number}","pulls_url":"https://api.github.com/repos/feons/titanium_mobile/pulls{/number}","milestones_url":"https://api.github.com/repos/feons/titanium_mobile/milestones{/number}","notifications_url":"https://api.github.com/repos/feons/titanium_mobile/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/feons/titanium_mobile/labels{/name}","releases_url":"https://api.github.com/repos/feons/titanium_mobile/releases{/id}","created_at":"2014-08-11T08:09:04Z","updated_at":"2015-04-23T10:41:59Z","pushed_at":"2015-04-23T10:49:28Z","git_url":"git://github.com/feons/titanium_mobile.git","ssh_url":"git@github.com:feons/titanium_mobile.git","clone_url":"https://github.com/feons/titanium_mobile.git","svn_url":"https://github.com/feons/titanium_mobile","homepage":"http://www.appcelerator.com","size":729783,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"appcelerator:master","ref":"master","sha":"9f3744b5a232b2fcf8f2b897591ffee550d8845b","user":{"login":"appcelerator","id":82188,"avatar_url":"https://avatars.githubusercontent.com/u/82188?v=3","gravatar_id":"","url":"https://api.github.com/users/appcelerator","html_url":"https://github.com/appcelerator","followers_url":"https://api.github.com/users/appcelerator/followers","following_url":"https://api.github.com/users/appcelerator/following{/other_user}","gists_url":"https://api.github.com/users/appcelerator/gists{/gist_id}","starred_url":"https://api.github.com/users/appcelerator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/appcelerator/subscriptions","organizations_url":"https://api.github.com/users/appcelerator/orgs","repos_url":"https://api.github.com/users/appcelerator/repos","events_url":"https://api.github.com/users/appcelerator/events{/privacy}","received_events_url":"https://api.github.com/users/appcelerator/received_events","type":"Organization","site_admin":false},"repo":{"id":228094,"name":"titanium_mobile","full_name":"appcelerator/titanium_mobile","owner":{"login":"appcelerator","id":82188,"avatar_url":"https://avatars.githubusercontent.com/u/82188?v=3","gravatar_id":"","url":"https://api.github.com/users/appcelerator","html_url":"https://github.com/appcelerator","followers_url":"https://api.github.com/users/appcelerator/followers","following_url":"https://api.github.com/users/appcelerator/following{/other_user}","gists_url":"https://api.github.com/users/appcelerator/gists{/gist_id}","starred_url":"https://api.github.com/users/appcelerator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/appcelerator/subscriptions","organizations_url":"https://api.github.com/users/appcelerator/orgs","repos_url":"https://api.github.com/users/appcelerator/repos","events_url":"https://api.github.com/users/appcelerator/events{/privacy}","received_events_url":"https://api.github.com/users/appcelerator/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/appcelerator/titanium_mobile","description":"Appcelerator Titanium Mobile","fork":false,"url":"https://api.github.com/repos/appcelerator/titanium_mobile","forks_url":"https://api.github.com/repos/appcelerator/titanium_mobile/forks","keys_url":"https://api.github.com/repos/appcelerator/titanium_mobile/keys{/key_id}","collaborators_url":"https://api.github.com/repos/appcelerator/titanium_mobile/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/appcelerator/titanium_mobile/teams","hooks_url":"https://api.github.com/repos/appcelerator/titanium_mobile/hooks","issue_events_url":"https://api.github.com/repos/appcelerator/titanium_mobile/issues/events{/number}","events_url":"https://api.github.com/repos/appcelerator/titanium_mobile/events","assignees_url":"https://api.github.com/repos/appcelerator/titanium_mobile/assignees{/user}","branches_url":"https://api.github.com/repos/appcelerator/titanium_mobile/branches{/branch}","tags_url":"https://api.github.com/repos/appcelerator/titanium_mobile/tags","blobs_url":"https://api.github.com/repos/appcelerator/titanium_mobile/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/appcelerator/titanium_mobile/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/appcelerator/titanium_mobile/git/refs{/sha}","trees_url":"https://api.github.com/repos/appcelerator/titanium_mobile/git/trees{/sha}","statuses_url":"https://api.github.com/repos/appcelerator/titanium_mobile/statuses/{sha}","languages_url":"https://api.github.com/repos/appcelerator/titanium_mobile/languages","stargazers_url":"https://api.github.com/repos/appcelerator/titanium_mobile/stargazers","contributors_url":"https://api.github.com/repos/appcelerator/titanium_mobile/contributors","subscribers_url":"https://api.github.com/repos/appcelerator/titanium_mobile/subscribers","subscription_url":"https://api.github.com/repos/appcelerator/titanium_mobile/subscription","commits_url":"https://api.github.com/repos/appcelerator/titanium_mobile/commits{/sha}","git_commits_url":"https://api.github.com/repos/appcelerator/titanium_mobile/git/commits{/sha}","comments_url":"https://api.github.com/repos/appcelerator/titanium_mobile/comments{/number}","issue_comment_url":"https://api.github.com/repos/appcelerator/titanium_mobile/issues/comments{/number}","contents_url":"https://api.github.com/repos/appcelerator/titanium_mobile/contents/{+path}","compare_url":"https://api.github.com/repos/appcelerator/titanium_mobile/compare/{base}...{head}","merges_url":"https://api.github.com/repos/appcelerator/titanium_mobile/merges","archive_url":"https://api.github.com/repos/appcelerator/titanium_mobile/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/appcelerator/titanium_mobile/downloads","issues_url":"https://api.github.com/repos/appcelerator/titanium_mobile/issues{/number}","pulls_url":"https://api.github.com/repos/appcelerator/titanium_mobile/pulls{/number}","milestones_url":"https://api.github.com/repos/appcelerator/titanium_mobile/milestones{/number}","notifications_url":"https://api.github.com/repos/appcelerator/titanium_mobile/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/appcelerator/titanium_mobile/labels{/name}","releases_url":"https://api.github.com/repos/appcelerator/titanium_mobile/releases{/id}","created_at":"2009-06-15T22:54:37Z","updated_at":"2015-04-23T20:10:57Z","pushed_at":"2015-04-23T22:45:14Z","git_url":"git://github.com/appcelerator/titanium_mobile.git","ssh_url":"git@github.com:appcelerator/titanium_mobile.git","clone_url":"https://github.com/appcelerator/titanium_mobile.git","svn_url":"https://github.com/appcelerator/titanium_mobile","homepage":"http://www.appcelerator.com","size":923435,"stargazers_count":1821,"watchers_count":1821,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":980,"mirror_url":null,"open_issues_count":75,"forks":980,"open_issues":75,"watchers":1821,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/appcelerator/titanium_mobile/pulls/6801"},"html":{"href":"https://github.com/appcelerator/titanium_mobile/pull/6801"},"issue":{"href":"https://api.github.com/repos/appcelerator/titanium_mobile/issues/6801"},"comments":{"href":"https://api.github.com/repos/appcelerator/titanium_mobile/issues/6801/comments"},"review_comments":{"href":"https://api.github.com/repos/appcelerator/titanium_mobile/pulls/6801/comments"},"review_comment":{"href":"https://api.github.com/repos/appcelerator/titanium_mobile/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/appcelerator/titanium_mobile/pulls/6801/commits"},"statuses":{"href":"https://api.github.com/repos/appcelerator/titanium_mobile/statuses/ae990aaa2a8336dcb0d902aeb802a6f51fe382b3"}}}}