{"action":"created","comment":{"url":"https://api.github.com/repos/ember-cli/ember-cli/pulls/comments/43970431","id":43970431,"diff_hunk":"@@ -177,3 +183,17 @@ UI.prototype.writeLevelVisible = function(writeLevel) {\n \n   return levels[writeLevel] >= levels[this.writeLevel];\n };\n+\n+/**\n+  Whether or not the specified write level should be printed to the errorStream.\n+\n+  @method writeToErrorStream\n+  @private\n+  @param {String} writeLevel\n+  @return {Boolean}\n+*/\n+UI.prototype.writeToErrorStream = function(writeLevel) {\n+  writeLevel = writeLevel || 'INFO';\n+\n+  return writeLevel.match(/ERROR/i);","path":"lib/ui/index.js","position":45,"original_position":45,"commit_id":"fe2468a8fdfbd05bc43f4eb9ae861fbc996a485c","original_commit_id":"fe2468a8fdfbd05bc43f4eb9ae861fbc996a485c","user":{"login":"rwjblue","id":12637,"avatar_url":"https://avatars.githubusercontent.com/u/12637?v=3","gravatar_id":"","url":"https://api.github.com/users/rwjblue","html_url":"https://github.com/rwjblue","followers_url":"https://api.github.com/users/rwjblue/followers","following_url":"https://api.github.com/users/rwjblue/following{/other_user}","gists_url":"https://api.github.com/users/rwjblue/gists{/gist_id}","starred_url":"https://api.github.com/users/rwjblue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwjblue/subscriptions","organizations_url":"https://api.github.com/users/rwjblue/orgs","repos_url":"https://api.github.com/users/rwjblue/repos","events_url":"https://api.github.com/users/rwjblue/events{/privacy}","received_events_url":"https://api.github.com/users/rwjblue/received_events","type":"User","site_admin":false},"body":"Is there a specific reason to use a regexp here? Would \r\n\r\n    return writeLevel === 'ERROR';\r\n\r\nWork?","created_at":"2015-11-05T02:35:43Z","updated_at":"2015-11-05T02:35:43Z","html_url":"https://github.com/ember-cli/ember-cli/pull/5039#discussion_r43970431","pull_request_url":"https://api.github.com/repos/ember-cli/ember-cli/pulls/5039","_links":{"self":{"href":"https://api.github.com/repos/ember-cli/ember-cli/pulls/comments/43970431"},"html":{"href":"https://github.com/ember-cli/ember-cli/pull/5039#discussion_r43970431"},"pull_request":{"href":"https://api.github.com/repos/ember-cli/ember-cli/pulls/5039"}}},"pull_request":{"url":"https://api.github.com/repos/ember-cli/ember-cli/pulls/5039","id":49773544,"html_url":"https://github.com/ember-cli/ember-cli/pull/5039","diff_url":"https://github.com/ember-cli/ember-cli/pull/5039.diff","patch_url":"https://github.com/ember-cli/ember-cli/pull/5039.patch","issue_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/5039","number":5039,"state":"open","locked":false,"title":"Add `UI.errorStream`","user":{"login":"seanpdoyle","id":2575027,"avatar_url":"https://avatars.githubusercontent.com/u/2575027?v=3","gravatar_id":"","url":"https://api.github.com/users/seanpdoyle","html_url":"https://github.com/seanpdoyle","followers_url":"https://api.github.com/users/seanpdoyle/followers","following_url":"https://api.github.com/users/seanpdoyle/following{/other_user}","gists_url":"https://api.github.com/users/seanpdoyle/gists{/gist_id}","starred_url":"https://api.github.com/users/seanpdoyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanpdoyle/subscriptions","organizations_url":"https://api.github.com/users/seanpdoyle/orgs","repos_url":"https://api.github.com/users/seanpdoyle/repos","events_url":"https://api.github.com/users/seanpdoyle/events{/privacy}","received_events_url":"https://api.github.com/users/seanpdoyle/received_events","type":"User","site_admin":false},"body":"If `ui.writeLine(error, 'ERROR')` is invoked, write to the\n`ui.errorStream`, which defaults to `process.stderr`.\n\nCloses [#5038].\n\n[#5038]: https://github.com/ember-cli/ember-cli/issues/5038","created_at":"2015-11-05T02:03:25Z","updated_at":"2015-11-05T02:35:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9a54fa7410bcda819cd28526b7f42ddc28d96c98","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ember-cli/ember-cli/pulls/5039/commits","review_comments_url":"https://api.github.com/repos/ember-cli/ember-cli/pulls/5039/comments","review_comment_url":"https://api.github.com/repos/ember-cli/ember-cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/5039/comments","statuses_url":"https://api.github.com/repos/ember-cli/ember-cli/statuses/fe2468a8fdfbd05bc43f4eb9ae861fbc996a485c","head":{"label":"seanpdoyle:sd-add-ui-error-stream","ref":"sd-add-ui-error-stream","sha":"fe2468a8fdfbd05bc43f4eb9ae861fbc996a485c","user":{"login":"seanpdoyle","id":2575027,"avatar_url":"https://avatars.githubusercontent.com/u/2575027?v=3","gravatar_id":"","url":"https://api.github.com/users/seanpdoyle","html_url":"https://github.com/seanpdoyle","followers_url":"https://api.github.com/users/seanpdoyle/followers","following_url":"https://api.github.com/users/seanpdoyle/following{/other_user}","gists_url":"https://api.github.com/users/seanpdoyle/gists{/gist_id}","starred_url":"https://api.github.com/users/seanpdoyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanpdoyle/subscriptions","organizations_url":"https://api.github.com/users/seanpdoyle/orgs","repos_url":"https://api.github.com/users/seanpdoyle/repos","events_url":"https://api.github.com/users/seanpdoyle/events{/privacy}","received_events_url":"https://api.github.com/users/seanpdoyle/received_events","type":"User","site_admin":false},"repo":{"id":27893657,"name":"ember-cli","full_name":"seanpdoyle/ember-cli","owner":{"login":"seanpdoyle","id":2575027,"avatar_url":"https://avatars.githubusercontent.com/u/2575027?v=3","gravatar_id":"","url":"https://api.github.com/users/seanpdoyle","html_url":"https://github.com/seanpdoyle","followers_url":"https://api.github.com/users/seanpdoyle/followers","following_url":"https://api.github.com/users/seanpdoyle/following{/other_user}","gists_url":"https://api.github.com/users/seanpdoyle/gists{/gist_id}","starred_url":"https://api.github.com/users/seanpdoyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanpdoyle/subscriptions","organizations_url":"https://api.github.com/users/seanpdoyle/orgs","repos_url":"https://api.github.com/users/seanpdoyle/repos","events_url":"https://api.github.com/users/seanpdoyle/events{/privacy}","received_events_url":"https://api.github.com/users/seanpdoyle/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/seanpdoyle/ember-cli","description":"","fork":true,"url":"https://api.github.com/repos/seanpdoyle/ember-cli","forks_url":"https://api.github.com/repos/seanpdoyle/ember-cli/forks","keys_url":"https://api.github.com/repos/seanpdoyle/ember-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/seanpdoyle/ember-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/seanpdoyle/ember-cli/teams","hooks_url":"https://api.github.com/repos/seanpdoyle/ember-cli/hooks","issue_events_url":"https://api.github.com/repos/seanpdoyle/ember-cli/issues/events{/number}","events_url":"https://api.github.com/repos/seanpdoyle/ember-cli/events","assignees_url":"https://api.github.com/repos/seanpdoyle/ember-cli/assignees{/user}","branches_url":"https://api.github.com/repos/seanpdoyle/ember-cli/branches{/branch}","tags_url":"https://api.github.com/repos/seanpdoyle/ember-cli/tags","blobs_url":"https://api.github.com/repos/seanpdoyle/ember-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/seanpdoyle/ember-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/seanpdoyle/ember-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/seanpdoyle/ember-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/seanpdoyle/ember-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/seanpdoyle/ember-cli/languages","stargazers_url":"https://api.github.com/repos/seanpdoyle/ember-cli/stargazers","contributors_url":"https://api.github.com/repos/seanpdoyle/ember-cli/contributors","subscribers_url":"https://api.github.com/repos/seanpdoyle/ember-cli/subscribers","subscription_url":"https://api.github.com/repos/seanpdoyle/ember-cli/subscription","commits_url":"https://api.github.com/repos/seanpdoyle/ember-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/seanpdoyle/ember-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/seanpdoyle/ember-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/seanpdoyle/ember-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/seanpdoyle/ember-cli/contents/{+path}","compare_url":"https://api.github.com/repos/seanpdoyle/ember-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/seanpdoyle/ember-cli/merges","archive_url":"https://api.github.com/repos/seanpdoyle/ember-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/seanpdoyle/ember-cli/downloads","issues_url":"https://api.github.com/repos/seanpdoyle/ember-cli/issues{/number}","pulls_url":"https://api.github.com/repos/seanpdoyle/ember-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/seanpdoyle/ember-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/seanpdoyle/ember-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/seanpdoyle/ember-cli/labels{/name}","releases_url":"https://api.github.com/repos/seanpdoyle/ember-cli/releases{/id}","created_at":"2014-12-11T22:02:28Z","updated_at":"2015-01-28T20:11:51Z","pushed_at":"2015-11-05T02:25:22Z","git_url":"git://github.com/seanpdoyle/ember-cli.git","ssh_url":"git@github.com:seanpdoyle/ember-cli.git","clone_url":"https://github.com/seanpdoyle/ember-cli.git","svn_url":"https://github.com/seanpdoyle/ember-cli","homepage":"http://www.ember-cli.com/","size":8533,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ember-cli:master","ref":"master","sha":"1bd51615dc5d5d17ca8b7bbe82baf656cbfe20b0","user":{"login":"ember-cli","id":10262982,"avatar_url":"https://avatars.githubusercontent.com/u/10262982?v=3","gravatar_id":"","url":"https://api.github.com/users/ember-cli","html_url":"https://github.com/ember-cli","followers_url":"https://api.github.com/users/ember-cli/followers","following_url":"https://api.github.com/users/ember-cli/following{/other_user}","gists_url":"https://api.github.com/users/ember-cli/gists{/gist_id}","starred_url":"https://api.github.com/users/ember-cli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ember-cli/subscriptions","organizations_url":"https://api.github.com/users/ember-cli/orgs","repos_url":"https://api.github.com/users/ember-cli/repos","events_url":"https://api.github.com/users/ember-cli/events{/privacy}","received_events_url":"https://api.github.com/users/ember-cli/received_events","type":"Organization","site_admin":false},"repo":{"id":14089735,"name":"ember-cli","full_name":"ember-cli/ember-cli","owner":{"login":"ember-cli","id":10262982,"avatar_url":"https://avatars.githubusercontent.com/u/10262982?v=3","gravatar_id":"","url":"https://api.github.com/users/ember-cli","html_url":"https://github.com/ember-cli","followers_url":"https://api.github.com/users/ember-cli/followers","following_url":"https://api.github.com/users/ember-cli/following{/other_user}","gists_url":"https://api.github.com/users/ember-cli/gists{/gist_id}","starred_url":"https://api.github.com/users/ember-cli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ember-cli/subscriptions","organizations_url":"https://api.github.com/users/ember-cli/orgs","repos_url":"https://api.github.com/users/ember-cli/repos","events_url":"https://api.github.com/users/ember-cli/events{/privacy}","received_events_url":"https://api.github.com/users/ember-cli/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ember-cli/ember-cli","description":"","fork":false,"url":"https://api.github.com/repos/ember-cli/ember-cli","forks_url":"https://api.github.com/repos/ember-cli/ember-cli/forks","keys_url":"https://api.github.com/repos/ember-cli/ember-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ember-cli/ember-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ember-cli/ember-cli/teams","hooks_url":"https://api.github.com/repos/ember-cli/ember-cli/hooks","issue_events_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/events{/number}","events_url":"https://api.github.com/repos/ember-cli/ember-cli/events","assignees_url":"https://api.github.com/repos/ember-cli/ember-cli/assignees{/user}","branches_url":"https://api.github.com/repos/ember-cli/ember-cli/branches{/branch}","tags_url":"https://api.github.com/repos/ember-cli/ember-cli/tags","blobs_url":"https://api.github.com/repos/ember-cli/ember-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ember-cli/ember-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ember-cli/ember-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/ember-cli/ember-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ember-cli/ember-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/ember-cli/ember-cli/languages","stargazers_url":"https://api.github.com/repos/ember-cli/ember-cli/stargazers","contributors_url":"https://api.github.com/repos/ember-cli/ember-cli/contributors","subscribers_url":"https://api.github.com/repos/ember-cli/ember-cli/subscribers","subscription_url":"https://api.github.com/repos/ember-cli/ember-cli/subscription","commits_url":"https://api.github.com/repos/ember-cli/ember-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/ember-cli/ember-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/ember-cli/ember-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/ember-cli/ember-cli/contents/{+path}","compare_url":"https://api.github.com/repos/ember-cli/ember-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ember-cli/ember-cli/merges","archive_url":"https://api.github.com/repos/ember-cli/ember-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ember-cli/ember-cli/downloads","issues_url":"https://api.github.com/repos/ember-cli/ember-cli/issues{/number}","pulls_url":"https://api.github.com/repos/ember-cli/ember-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/ember-cli/ember-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/ember-cli/ember-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ember-cli/ember-cli/labels{/name}","releases_url":"https://api.github.com/repos/ember-cli/ember-cli/releases{/id}","created_at":"2013-11-03T17:34:43Z","updated_at":"2015-11-04T12:11:46Z","pushed_at":"2015-11-05T02:25:23Z","git_url":"git://github.com/ember-cli/ember-cli.git","ssh_url":"git@github.com:ember-cli/ember-cli.git","clone_url":"https://github.com/ember-cli/ember-cli.git","svn_url":"https://github.com/ember-cli/ember-cli","homepage":"http://www.ember-cli.com/","size":30814,"stargazers_count":2634,"watchers_count":2634,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":749,"mirror_url":null,"open_issues_count":295,"forks":749,"open_issues":295,"watchers":2634,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ember-cli/ember-cli/pulls/5039"},"html":{"href":"https://github.com/ember-cli/ember-cli/pull/5039"},"issue":{"href":"https://api.github.com/repos/ember-cli/ember-cli/issues/5039"},"comments":{"href":"https://api.github.com/repos/ember-cli/ember-cli/issues/5039/comments"},"review_comments":{"href":"https://api.github.com/repos/ember-cli/ember-cli/pulls/5039/comments"},"review_comment":{"href":"https://api.github.com/repos/ember-cli/ember-cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ember-cli/ember-cli/pulls/5039/commits"},"statuses":{"href":"https://api.github.com/repos/ember-cli/ember-cli/statuses/fe2468a8fdfbd05bc43f4eb9ae861fbc996a485c"}}}}