{"action":"created","comment":{"url":"https://api.github.com/repos/trufflesuite/truffle/pulls/comments/227954555","pull_request_review_id":168112969,"id":227954555,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNzk1NDU1NQ==","diff_hunk":"@@ -1,15 +1,31 @@\n-var pkg = require(\"../package.json\");\n-var solcpkg = require(\"solc/package.json\");\n+const pkg = require(\"../package.json\");\n+const solcpkg = require(\"solc/package.json\");\n \n-var bundle_version = null;\n+const getVersionInformation = () => {\n+  let bundleVersion;\n+  // NOTE: Webpack will replace BUNDLE_VERSION with a string.\n+  if (typeof BUNDLE_VERSION != \"undefined\") {\n+    bundleVersion = BUNDLE_VERSION;\n+  }\n \n-// NOTE: Webpack will replace BUNDLE_VERSION with a string.\n-if (typeof BUNDLE_VERSION != \"undefined\") {\n-  bundle_version = BUNDLE_VERSION;\n+  return {\n+    core: pkg.version,\n+    bundle: bundleVersion,\n+    solc: solcpkg.version\n+  };\n+}\n+\n+const logVersionInformation = (logger) => {\n+  const versionInformation = getVersionInformation();\n+\n+  const bundle = versionInformation.bundle ? `v${versionInformation.bundle}` : \"(unbundled)\";\n+\n+  logger.log(`Truffle ${bundle} (core: ${versionInformation.core})`);\n+  logger.log(`Solidity v${versionInformation.solc} (solc-js)`);\n+  logger.log(`Node ${process.version}`);\n }\n \n module.exports = {\n-  core: pkg.version,\n-  bundle: bundle_version,\n-  solc: solcpkg.version\n+  logVersionInformation,\n+  getVersionInformation,","path":"packages/truffle-core/lib/version.js","position":39,"original_position":39,"commit_id":"27063aed4ed49e6d70e885becc7b8b49ffce45dc","original_commit_id":"27063aed4ed49e6d70e885becc7b8b49ffce45dc","user":{"login":"eggplantzzz","id":14827965,"node_id":"MDQ6VXNlcjE0ODI3OTY1","avatar_url":"https://avatars0.githubusercontent.com/u/14827965?v=4","gravatar_id":"","url":"https://api.github.com/users/eggplantzzz","html_url":"https://github.com/eggplantzzz","followers_url":"https://api.github.com/users/eggplantzzz/followers","following_url":"https://api.github.com/users/eggplantzzz/following{/other_user}","gists_url":"https://api.github.com/users/eggplantzzz/gists{/gist_id}","starred_url":"https://api.github.com/users/eggplantzzz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eggplantzzz/subscriptions","organizations_url":"https://api.github.com/users/eggplantzzz/orgs","repos_url":"https://api.github.com/users/eggplantzzz/repos","events_url":"https://api.github.com/users/eggplantzzz/events{/privacy}","received_events_url":"https://api.github.com/users/eggplantzzz/received_events","type":"User","site_admin":false},"body":"Sounds good","created_at":"2018-10-24T20:48:50Z","updated_at":"2018-10-24T20:48:51Z","html_url":"https://github.com/trufflesuite/truffle/pull/1372#discussion_r227954555","pull_request_url":"https://api.github.com/repos/trufflesuite/truffle/pulls/1372","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/trufflesuite/truffle/pulls/comments/227954555"},"html":{"href":"https://github.com/trufflesuite/truffle/pull/1372#discussion_r227954555"},"pull_request":{"href":"https://api.github.com/repos/trufflesuite/truffle/pulls/1372"}},"in_reply_to_id":227947451},"pull_request":{"url":"https://api.github.com/repos/trufflesuite/truffle/pulls/1372","id":225412501,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI1NDEyNTAx","html_url":"https://github.com/trufflesuite/truffle/pull/1372","diff_url":"https://github.com/trufflesuite/truffle/pull/1372.diff","patch_url":"https://github.com/trufflesuite/truffle/pull/1372.patch","issue_url":"https://api.github.com/repos/trufflesuite/truffle/issues/1372","number":1372,"state":"open","locked":false,"title":"Log versions on error","user":{"login":"eggplantzzz","id":14827965,"node_id":"MDQ6VXNlcjE0ODI3OTY1","avatar_url":"https://avatars0.githubusercontent.com/u/14827965?v=4","gravatar_id":"","url":"https://api.github.com/users/eggplantzzz","html_url":"https://github.com/eggplantzzz","followers_url":"https://api.github.com/users/eggplantzzz/followers","following_url":"https://api.github.com/users/eggplantzzz/following{/other_user}","gists_url":"https://api.github.com/users/eggplantzzz/gists{/gist_id}","starred_url":"https://api.github.com/users/eggplantzzz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eggplantzzz/subscriptions","organizations_url":"https://api.github.com/users/eggplantzzz/orgs","repos_url":"https://api.github.com/users/eggplantzzz/repos","events_url":"https://api.github.com/users/eggplantzzz/events{/privacy}","received_events_url":"https://api.github.com/users/eggplantzzz/received_events","type":"User","site_admin":false},"body":"When encountering an error, log the versions of truffle, node and solidity in order to make troubleshooting easier.","created_at":"2018-10-24T13:53:07Z","updated_at":"2018-10-24T20:48:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"464046fad23f695371c3ed8cae9bd1e86a9f2fb0","assignee":null,"assignees":[],"requested_reviewers":[{"login":"fainashalts","id":8952139,"node_id":"MDQ6VXNlcjg5NTIxMzk=","avatar_url":"https://avatars1.githubusercontent.com/u/8952139?v=4","gravatar_id":"","url":"https://api.github.com/users/fainashalts","html_url":"https://github.com/fainashalts","followers_url":"https://api.github.com/users/fainashalts/followers","following_url":"https://api.github.com/users/fainashalts/following{/other_user}","gists_url":"https://api.github.com/users/fainashalts/gists{/gist_id}","starred_url":"https://api.github.com/users/fainashalts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fainashalts/subscriptions","organizations_url":"https://api.github.com/users/fainashalts/orgs","repos_url":"https://api.github.com/users/fainashalts/repos","events_url":"https://api.github.com/users/fainashalts/events{/privacy}","received_events_url":"https://api.github.com/users/fainashalts/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/trufflesuite/truffle/pulls/1372/commits","review_comments_url":"https://api.github.com/repos/trufflesuite/truffle/pulls/1372/comments","review_comment_url":"https://api.github.com/repos/trufflesuite/truffle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/trufflesuite/truffle/issues/1372/comments","statuses_url":"https://api.github.com/repos/trufflesuite/truffle/statuses/27063aed4ed49e6d70e885becc7b8b49ffce45dc","head":{"label":"trufflesuite:error-log-version","ref":"error-log-version","sha":"27063aed4ed49e6d70e885becc7b8b49ffce45dc","user":{"login":"trufflesuite","id":22205159,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyMjA1MTU5","avatar_url":"https://avatars1.githubusercontent.com/u/22205159?v=4","gravatar_id":"","url":"https://api.github.com/users/trufflesuite","html_url":"https://github.com/trufflesuite","followers_url":"https://api.github.com/users/trufflesuite/followers","following_url":"https://api.github.com/users/trufflesuite/following{/other_user}","gists_url":"https://api.github.com/users/trufflesuite/gists{/gist_id}","starred_url":"https://api.github.com/users/trufflesuite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trufflesuite/subscriptions","organizations_url":"https://api.github.com/users/trufflesuite/orgs","repos_url":"https://api.github.com/users/trufflesuite/repos","events_url":"https://api.github.com/users/trufflesuite/events{/privacy}","received_events_url":"https://api.github.com/users/trufflesuite/received_events","type":"Organization","site_admin":false},"repo":{"id":38267641,"node_id":"MDEwOlJlcG9zaXRvcnkzODI2NzY0MQ==","name":"truffle","full_name":"trufflesuite/truffle","private":false,"owner":{"login":"trufflesuite","id":22205159,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyMjA1MTU5","avatar_url":"https://avatars1.githubusercontent.com/u/22205159?v=4","gravatar_id":"","url":"https://api.github.com/users/trufflesuite","html_url":"https://github.com/trufflesuite","followers_url":"https://api.github.com/users/trufflesuite/followers","following_url":"https://api.github.com/users/trufflesuite/following{/other_user}","gists_url":"https://api.github.com/users/trufflesuite/gists{/gist_id}","starred_url":"https://api.github.com/users/trufflesuite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trufflesuite/subscriptions","organizations_url":"https://api.github.com/users/trufflesuite/orgs","repos_url":"https://api.github.com/users/trufflesuite/repos","events_url":"https://api.github.com/users/trufflesuite/events{/privacy}","received_events_url":"https://api.github.com/users/trufflesuite/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/trufflesuite/truffle","description":"The most popular blockchain development framework","fork":false,"url":"https://api.github.com/repos/trufflesuite/truffle","forks_url":"https://api.github.com/repos/trufflesuite/truffle/forks","keys_url":"https://api.github.com/repos/trufflesuite/truffle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/trufflesuite/truffle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/trufflesuite/truffle/teams","hooks_url":"https://api.github.com/repos/trufflesuite/truffle/hooks","issue_events_url":"https://api.github.com/repos/trufflesuite/truffle/issues/events{/number}","events_url":"https://api.github.com/repos/trufflesuite/truffle/events","assignees_url":"https://api.github.com/repos/trufflesuite/truffle/assignees{/user}","branches_url":"https://api.github.com/repos/trufflesuite/truffle/branches{/branch}","tags_url":"https://api.github.com/repos/trufflesuite/truffle/tags","blobs_url":"https://api.github.com/repos/trufflesuite/truffle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/trufflesuite/truffle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/trufflesuite/truffle/git/refs{/sha}","trees_url":"https://api.github.com/repos/trufflesuite/truffle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/trufflesuite/truffle/statuses/{sha}","languages_url":"https://api.github.com/repos/trufflesuite/truffle/languages","stargazers_url":"https://api.github.com/repos/trufflesuite/truffle/stargazers","contributors_url":"https://api.github.com/repos/trufflesuite/truffle/contributors","subscribers_url":"https://api.github.com/repos/trufflesuite/truffle/subscribers","subscription_url":"https://api.github.com/repos/trufflesuite/truffle/subscription","commits_url":"https://api.github.com/repos/trufflesuite/truffle/commits{/sha}","git_commits_url":"https://api.github.com/repos/trufflesuite/truffle/git/commits{/sha}","comments_url":"https://api.github.com/repos/trufflesuite/truffle/comments{/number}","issue_comment_url":"https://api.github.com/repos/trufflesuite/truffle/issues/comments{/number}","contents_url":"https://api.github.com/repos/trufflesuite/truffle/contents/{+path}","compare_url":"https://api.github.com/repos/trufflesuite/truffle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/trufflesuite/truffle/merges","archive_url":"https://api.github.com/repos/trufflesuite/truffle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/trufflesuite/truffle/downloads","issues_url":"https://api.github.com/repos/trufflesuite/truffle/issues{/number}","pulls_url":"https://api.github.com/repos/trufflesuite/truffle/pulls{/number}","milestones_url":"https://api.github.com/repos/trufflesuite/truffle/milestones{/number}","notifications_url":"https://api.github.com/repos/trufflesuite/truffle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/trufflesuite/truffle/labels{/name}","releases_url":"https://api.github.com/repos/trufflesuite/truffle/releases{/id}","deployments_url":"https://api.github.com/repos/trufflesuite/truffle/deployments","created_at":"2015-06-29T19:46:53Z","updated_at":"2018-10-24T18:13:54Z","pushed_at":"2018-10-24T20:40:39Z","git_url":"git://github.com/trufflesuite/truffle.git","ssh_url":"git@github.com:trufflesuite/truffle.git","clone_url":"https://github.com/trufflesuite/truffle.git","svn_url":"https://github.com/trufflesuite/truffle","homepage":"http://truffleframework.com","size":56751,"stargazers_count":7163,"watchers_count":7163,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":965,"mirror_url":null,"archived":false,"open_issues_count":242,"license":null,"forks":965,"open_issues":242,"watchers":7163,"default_branch":"next"}},"base":{"label":"trufflesuite:next","ref":"next","sha":"6c2101502ff8b742cfa9142e4e4ac1b1573cb164","user":{"login":"trufflesuite","id":22205159,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyMjA1MTU5","avatar_url":"https://avatars1.githubusercontent.com/u/22205159?v=4","gravatar_id":"","url":"https://api.github.com/users/trufflesuite","html_url":"https://github.com/trufflesuite","followers_url":"https://api.github.com/users/trufflesuite/followers","following_url":"https://api.github.com/users/trufflesuite/following{/other_user}","gists_url":"https://api.github.com/users/trufflesuite/gists{/gist_id}","starred_url":"https://api.github.com/users/trufflesuite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trufflesuite/subscriptions","organizations_url":"https://api.github.com/users/trufflesuite/orgs","repos_url":"https://api.github.com/users/trufflesuite/repos","events_url":"https://api.github.com/users/trufflesuite/events{/privacy}","received_events_url":"https://api.github.com/users/trufflesuite/received_events","type":"Organization","site_admin":false},"repo":{"id":38267641,"node_id":"MDEwOlJlcG9zaXRvcnkzODI2NzY0MQ==","name":"truffle","full_name":"trufflesuite/truffle","private":false,"owner":{"login":"trufflesuite","id":22205159,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyMjA1MTU5","avatar_url":"https://avatars1.githubusercontent.com/u/22205159?v=4","gravatar_id":"","url":"https://api.github.com/users/trufflesuite","html_url":"https://github.com/trufflesuite","followers_url":"https://api.github.com/users/trufflesuite/followers","following_url":"https://api.github.com/users/trufflesuite/following{/other_user}","gists_url":"https://api.github.com/users/trufflesuite/gists{/gist_id}","starred_url":"https://api.github.com/users/trufflesuite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trufflesuite/subscriptions","organizations_url":"https://api.github.com/users/trufflesuite/orgs","repos_url":"https://api.github.com/users/trufflesuite/repos","events_url":"https://api.github.com/users/trufflesuite/events{/privacy}","received_events_url":"https://api.github.com/users/trufflesuite/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/trufflesuite/truffle","description":"The most popular blockchain development framework","fork":false,"url":"https://api.github.com/repos/trufflesuite/truffle","forks_url":"https://api.github.com/repos/trufflesuite/truffle/forks","keys_url":"https://api.github.com/repos/trufflesuite/truffle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/trufflesuite/truffle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/trufflesuite/truffle/teams","hooks_url":"https://api.github.com/repos/trufflesuite/truffle/hooks","issue_events_url":"https://api.github.com/repos/trufflesuite/truffle/issues/events{/number}","events_url":"https://api.github.com/repos/trufflesuite/truffle/events","assignees_url":"https://api.github.com/repos/trufflesuite/truffle/assignees{/user}","branches_url":"https://api.github.com/repos/trufflesuite/truffle/branches{/branch}","tags_url":"https://api.github.com/repos/trufflesuite/truffle/tags","blobs_url":"https://api.github.com/repos/trufflesuite/truffle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/trufflesuite/truffle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/trufflesuite/truffle/git/refs{/sha}","trees_url":"https://api.github.com/repos/trufflesuite/truffle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/trufflesuite/truffle/statuses/{sha}","languages_url":"https://api.github.com/repos/trufflesuite/truffle/languages","stargazers_url":"https://api.github.com/repos/trufflesuite/truffle/stargazers","contributors_url":"https://api.github.com/repos/trufflesuite/truffle/contributors","subscribers_url":"https://api.github.com/repos/trufflesuite/truffle/subscribers","subscription_url":"https://api.github.com/repos/trufflesuite/truffle/subscription","commits_url":"https://api.github.com/repos/trufflesuite/truffle/commits{/sha}","git_commits_url":"https://api.github.com/repos/trufflesuite/truffle/git/commits{/sha}","comments_url":"https://api.github.com/repos/trufflesuite/truffle/comments{/number}","issue_comment_url":"https://api.github.com/repos/trufflesuite/truffle/issues/comments{/number}","contents_url":"https://api.github.com/repos/trufflesuite/truffle/contents/{+path}","compare_url":"https://api.github.com/repos/trufflesuite/truffle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/trufflesuite/truffle/merges","archive_url":"https://api.github.com/repos/trufflesuite/truffle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/trufflesuite/truffle/downloads","issues_url":"https://api.github.com/repos/trufflesuite/truffle/issues{/number}","pulls_url":"https://api.github.com/repos/trufflesuite/truffle/pulls{/number}","milestones_url":"https://api.github.com/repos/trufflesuite/truffle/milestones{/number}","notifications_url":"https://api.github.com/repos/trufflesuite/truffle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/trufflesuite/truffle/labels{/name}","releases_url":"https://api.github.com/repos/trufflesuite/truffle/releases{/id}","deployments_url":"https://api.github.com/repos/trufflesuite/truffle/deployments","created_at":"2015-06-29T19:46:53Z","updated_at":"2018-10-24T18:13:54Z","pushed_at":"2018-10-24T20:40:39Z","git_url":"git://github.com/trufflesuite/truffle.git","ssh_url":"git@github.com:trufflesuite/truffle.git","clone_url":"https://github.com/trufflesuite/truffle.git","svn_url":"https://github.com/trufflesuite/truffle","homepage":"http://truffleframework.com","size":56751,"stargazers_count":7163,"watchers_count":7163,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":965,"mirror_url":null,"archived":false,"open_issues_count":242,"license":null,"forks":965,"open_issues":242,"watchers":7163,"default_branch":"next"}},"_links":{"self":{"href":"https://api.github.com/repos/trufflesuite/truffle/pulls/1372"},"html":{"href":"https://github.com/trufflesuite/truffle/pull/1372"},"issue":{"href":"https://api.github.com/repos/trufflesuite/truffle/issues/1372"},"comments":{"href":"https://api.github.com/repos/trufflesuite/truffle/issues/1372/comments"},"review_comments":{"href":"https://api.github.com/repos/trufflesuite/truffle/pulls/1372/comments"},"review_comment":{"href":"https://api.github.com/repos/trufflesuite/truffle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/trufflesuite/truffle/pulls/1372/commits"},"statuses":{"href":"https://api.github.com/repos/trufflesuite/truffle/statuses/27063aed4ed49e6d70e885becc7b8b49ffce45dc"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"eggplantzzz"}}