{"action":"created","comment":{"url":"https://api.github.com/repos/astro-informatics/purify/pulls/comments/199147845","pull_request_review_id":133211504,"id":199147845,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5OTE0Nzg0NQ==","diff_hunk":"@@ -28,10 +30,44 @@ YamlParser::YamlParser (const std::string& filepath)\n \n void YamlParser::readFile ()\n {\n-  YAML::Node config = YAML::LoadFile(this->filepath_);\n-  // A bit of defensive programming\n-  assert(config.Type() == YAML::NodeType::Map);\n-  this->config_file = config;\n+  try\n+    {\n+      YAML::Node config = YAML::LoadFile(this->filepath_);\n+      // A bit of defensive programming\n+      assert(config.Type() == YAML::NodeType::Map);\n+      this->config_file = config;\n+    }\n+  catch(YAML::BadFile& exception)\n+    {\n+      char cwd[1024];\n+      getcwd(cwd, sizeof(cwd));\n+      std::cerr << \"The input file path \" << this->filepath_ << \" could not be found from \" << cwd << std::endl;","path":"cpp/purify/yaml-parser.cc","position":28,"original_position":28,"commit_id":"e303573438c08a2099e734702275126e7670afb4","original_commit_id":"e303573438c08a2099e734702275126e7670afb4","user":{"login":"Luke-Pratley","id":11533470,"node_id":"MDQ6VXNlcjExNTMzNDcw","avatar_url":"https://avatars2.githubusercontent.com/u/11533470?v=4","gravatar_id":"","url":"https://api.github.com/users/Luke-Pratley","html_url":"https://github.com/Luke-Pratley","followers_url":"https://api.github.com/users/Luke-Pratley/followers","following_url":"https://api.github.com/users/Luke-Pratley/following{/other_user}","gists_url":"https://api.github.com/users/Luke-Pratley/gists{/gist_id}","starred_url":"https://api.github.com/users/Luke-Pratley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Luke-Pratley/subscriptions","organizations_url":"https://api.github.com/users/Luke-Pratley/orgs","repos_url":"https://api.github.com/users/Luke-Pratley/repos","events_url":"https://api.github.com/users/Luke-Pratley/events{/privacy}","received_events_url":"https://api.github.com/users/Luke-Pratley/received_events","type":"User","site_admin":false},"body":"rather than using std::cerr put this in the runtime_error","created_at":"2018-06-29T12:49:20Z","updated_at":"2018-06-29T13:01:12Z","html_url":"https://github.com/astro-informatics/purify/pull/177#discussion_r199147845","pull_request_url":"https://api.github.com/repos/astro-informatics/purify/pulls/177","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/astro-informatics/purify/pulls/comments/199147845"},"html":{"href":"https://github.com/astro-informatics/purify/pull/177#discussion_r199147845"},"pull_request":{"href":"https://api.github.com/repos/astro-informatics/purify/pulls/177"}}},"pull_request":{"url":"https://api.github.com/repos/astro-informatics/purify/pulls/177","id":198137930,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk4MTM3OTMw","html_url":"https://github.com/astro-informatics/purify/pull/177","diff_url":"https://github.com/astro-informatics/purify/pull/177.diff","patch_url":"https://github.com/astro-informatics/purify/pull/177.patch","issue_url":"https://api.github.com/repos/astro-informatics/purify/issues/177","number":177,"state":"open","locked":false,"title":"A getter herlper function to check if the yaml data are parsed and se…","user":{"login":"UCLGuichard","id":9250798,"node_id":"MDQ6VXNlcjkyNTA3OTg=","avatar_url":"https://avatars3.githubusercontent.com/u/9250798?v=4","gravatar_id":"","url":"https://api.github.com/users/UCLGuichard","html_url":"https://github.com/UCLGuichard","followers_url":"https://api.github.com/users/UCLGuichard/followers","following_url":"https://api.github.com/users/UCLGuichard/following{/other_user}","gists_url":"https://api.github.com/users/UCLGuichard/gists{/gist_id}","starred_url":"https://api.github.com/users/UCLGuichard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UCLGuichard/subscriptions","organizations_url":"https://api.github.com/users/UCLGuichard/orgs","repos_url":"https://api.github.com/users/UCLGuichard/repos","events_url":"https://api.github.com/users/UCLGuichard/events{/privacy}","received_events_url":"https://api.github.com/users/UCLGuichard/received_events","type":"User","site_admin":false},"body":"Fixes #175 \r\nThe paths to the config file and to the folder to write the output are now passed as arguments.","created_at":"2018-06-28T20:03:25Z","updated_at":"2018-06-29T13:01:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":{"login":"UCLGuichard","id":9250798,"node_id":"MDQ6VXNlcjkyNTA3OTg=","avatar_url":"https://avatars3.githubusercontent.com/u/9250798?v=4","gravatar_id":"","url":"https://api.github.com/users/UCLGuichard","html_url":"https://github.com/UCLGuichard","followers_url":"https://api.github.com/users/UCLGuichard/followers","following_url":"https://api.github.com/users/UCLGuichard/following{/other_user}","gists_url":"https://api.github.com/users/UCLGuichard/gists{/gist_id}","starred_url":"https://api.github.com/users/UCLGuichard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UCLGuichard/subscriptions","organizations_url":"https://api.github.com/users/UCLGuichard/orgs","repos_url":"https://api.github.com/users/UCLGuichard/repos","events_url":"https://api.github.com/users/UCLGuichard/events{/privacy}","received_events_url":"https://api.github.com/users/UCLGuichard/received_events","type":"User","site_admin":false},"assignees":[{"login":"UCLGuichard","id":9250798,"node_id":"MDQ6VXNlcjkyNTA3OTg=","avatar_url":"https://avatars3.githubusercontent.com/u/9250798?v=4","gravatar_id":"","url":"https://api.github.com/users/UCLGuichard","html_url":"https://github.com/UCLGuichard","followers_url":"https://api.github.com/users/UCLGuichard/followers","following_url":"https://api.github.com/users/UCLGuichard/following{/other_user}","gists_url":"https://api.github.com/users/UCLGuichard/gists{/gist_id}","starred_url":"https://api.github.com/users/UCLGuichard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UCLGuichard/subscriptions","organizations_url":"https://api.github.com/users/UCLGuichard/orgs","repos_url":"https://api.github.com/users/UCLGuichard/repos","events_url":"https://api.github.com/users/UCLGuichard/events{/privacy}","received_events_url":"https://api.github.com/users/UCLGuichard/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":379643195,"node_id":"MDU6TGFiZWwzNzk2NDMxOTU=","url":"https://api.github.com/repos/astro-informatics/purify/labels/in%20progress","name":"in progress","color":"00a7ed","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/astro-informatics/purify/pulls/177/commits","review_comments_url":"https://api.github.com/repos/astro-informatics/purify/pulls/177/comments","review_comment_url":"https://api.github.com/repos/astro-informatics/purify/pulls/comments{/number}","comments_url":"https://api.github.com/repos/astro-informatics/purify/issues/177/comments","statuses_url":"https://api.github.com/repos/astro-informatics/purify/statuses/e303573438c08a2099e734702275126e7670afb4","head":{"label":"astro-informatics:parser-improvements","ref":"parser-improvements","sha":"e303573438c08a2099e734702275126e7670afb4","user":{"login":"astro-informatics","id":10872187,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwODcyMTg3","avatar_url":"https://avatars2.githubusercontent.com/u/10872187?v=4","gravatar_id":"","url":"https://api.github.com/users/astro-informatics","html_url":"https://github.com/astro-informatics","followers_url":"https://api.github.com/users/astro-informatics/followers","following_url":"https://api.github.com/users/astro-informatics/following{/other_user}","gists_url":"https://api.github.com/users/astro-informatics/gists{/gist_id}","starred_url":"https://api.github.com/users/astro-informatics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astro-informatics/subscriptions","organizations_url":"https://api.github.com/users/astro-informatics/orgs","repos_url":"https://api.github.com/users/astro-informatics/repos","events_url":"https://api.github.com/users/astro-informatics/events{/privacy}","received_events_url":"https://api.github.com/users/astro-informatics/received_events","type":"Organization","site_admin":false},"repo":{"id":32159175,"node_id":"MDEwOlJlcG9zaXRvcnkzMjE1OTE3NQ==","name":"purify","full_name":"astro-informatics/purify","owner":{"login":"astro-informatics","id":10872187,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwODcyMTg3","avatar_url":"https://avatars2.githubusercontent.com/u/10872187?v=4","gravatar_id":"","url":"https://api.github.com/users/astro-informatics","html_url":"https://github.com/astro-informatics","followers_url":"https://api.github.com/users/astro-informatics/followers","following_url":"https://api.github.com/users/astro-informatics/following{/other_user}","gists_url":"https://api.github.com/users/astro-informatics/gists{/gist_id}","starred_url":"https://api.github.com/users/astro-informatics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astro-informatics/subscriptions","organizations_url":"https://api.github.com/users/astro-informatics/orgs","repos_url":"https://api.github.com/users/astro-informatics/repos","events_url":"https://api.github.com/users/astro-informatics/events{/privacy}","received_events_url":"https://api.github.com/users/astro-informatics/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/astro-informatics/purify","description":null,"fork":false,"url":"https://api.github.com/repos/astro-informatics/purify","forks_url":"https://api.github.com/repos/astro-informatics/purify/forks","keys_url":"https://api.github.com/repos/astro-informatics/purify/keys{/key_id}","collaborators_url":"https://api.github.com/repos/astro-informatics/purify/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/astro-informatics/purify/teams","hooks_url":"https://api.github.com/repos/astro-informatics/purify/hooks","issue_events_url":"https://api.github.com/repos/astro-informatics/purify/issues/events{/number}","events_url":"https://api.github.com/repos/astro-informatics/purify/events","assignees_url":"https://api.github.com/repos/astro-informatics/purify/assignees{/user}","branches_url":"https://api.github.com/repos/astro-informatics/purify/branches{/branch}","tags_url":"https://api.github.com/repos/astro-informatics/purify/tags","blobs_url":"https://api.github.com/repos/astro-informatics/purify/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/astro-informatics/purify/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/astro-informatics/purify/git/refs{/sha}","trees_url":"https://api.github.com/repos/astro-informatics/purify/git/trees{/sha}","statuses_url":"https://api.github.com/repos/astro-informatics/purify/statuses/{sha}","languages_url":"https://api.github.com/repos/astro-informatics/purify/languages","stargazers_url":"https://api.github.com/repos/astro-informatics/purify/stargazers","contributors_url":"https://api.github.com/repos/astro-informatics/purify/contributors","subscribers_url":"https://api.github.com/repos/astro-informatics/purify/subscribers","subscription_url":"https://api.github.com/repos/astro-informatics/purify/subscription","commits_url":"https://api.github.com/repos/astro-informatics/purify/commits{/sha}","git_commits_url":"https://api.github.com/repos/astro-informatics/purify/git/commits{/sha}","comments_url":"https://api.github.com/repos/astro-informatics/purify/comments{/number}","issue_comment_url":"https://api.github.com/repos/astro-informatics/purify/issues/comments{/number}","contents_url":"https://api.github.com/repos/astro-informatics/purify/contents/{+path}","compare_url":"https://api.github.com/repos/astro-informatics/purify/compare/{base}...{head}","merges_url":"https://api.github.com/repos/astro-informatics/purify/merges","archive_url":"https://api.github.com/repos/astro-informatics/purify/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/astro-informatics/purify/downloads","issues_url":"https://api.github.com/repos/astro-informatics/purify/issues{/number}","pulls_url":"https://api.github.com/repos/astro-informatics/purify/pulls{/number}","milestones_url":"https://api.github.com/repos/astro-informatics/purify/milestones{/number}","notifications_url":"https://api.github.com/repos/astro-informatics/purify/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/astro-informatics/purify/labels{/name}","releases_url":"https://api.github.com/repos/astro-informatics/purify/releases{/id}","deployments_url":"https://api.github.com/repos/astro-informatics/purify/deployments","created_at":"2015-03-13T14:05:57Z","updated_at":"2018-06-29T10:42:52Z","pushed_at":"2018-06-29T12:34:46Z","git_url":"git://github.com/astro-informatics/purify.git","ssh_url":"git@github.com:astro-informatics/purify.git","clone_url":"https://github.com/astro-informatics/purify.git","svn_url":"https://github.com/astro-informatics/purify","homepage":null,"size":111311,"stargazers_count":2,"watchers_count":2,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":36,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":0,"open_issues":36,"watchers":2,"default_branch":"development"}},"base":{"label":"astro-informatics:development","ref":"development","sha":"2619b51744570da4a6d2d7d05740ece867fb81d7","user":{"login":"astro-informatics","id":10872187,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwODcyMTg3","avatar_url":"https://avatars2.githubusercontent.com/u/10872187?v=4","gravatar_id":"","url":"https://api.github.com/users/astro-informatics","html_url":"https://github.com/astro-informatics","followers_url":"https://api.github.com/users/astro-informatics/followers","following_url":"https://api.github.com/users/astro-informatics/following{/other_user}","gists_url":"https://api.github.com/users/astro-informatics/gists{/gist_id}","starred_url":"https://api.github.com/users/astro-informatics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astro-informatics/subscriptions","organizations_url":"https://api.github.com/users/astro-informatics/orgs","repos_url":"https://api.github.com/users/astro-informatics/repos","events_url":"https://api.github.com/users/astro-informatics/events{/privacy}","received_events_url":"https://api.github.com/users/astro-informatics/received_events","type":"Organization","site_admin":false},"repo":{"id":32159175,"node_id":"MDEwOlJlcG9zaXRvcnkzMjE1OTE3NQ==","name":"purify","full_name":"astro-informatics/purify","owner":{"login":"astro-informatics","id":10872187,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwODcyMTg3","avatar_url":"https://avatars2.githubusercontent.com/u/10872187?v=4","gravatar_id":"","url":"https://api.github.com/users/astro-informatics","html_url":"https://github.com/astro-informatics","followers_url":"https://api.github.com/users/astro-informatics/followers","following_url":"https://api.github.com/users/astro-informatics/following{/other_user}","gists_url":"https://api.github.com/users/astro-informatics/gists{/gist_id}","starred_url":"https://api.github.com/users/astro-informatics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astro-informatics/subscriptions","organizations_url":"https://api.github.com/users/astro-informatics/orgs","repos_url":"https://api.github.com/users/astro-informatics/repos","events_url":"https://api.github.com/users/astro-informatics/events{/privacy}","received_events_url":"https://api.github.com/users/astro-informatics/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/astro-informatics/purify","description":null,"fork":false,"url":"https://api.github.com/repos/astro-informatics/purify","forks_url":"https://api.github.com/repos/astro-informatics/purify/forks","keys_url":"https://api.github.com/repos/astro-informatics/purify/keys{/key_id}","collaborators_url":"https://api.github.com/repos/astro-informatics/purify/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/astro-informatics/purify/teams","hooks_url":"https://api.github.com/repos/astro-informatics/purify/hooks","issue_events_url":"https://api.github.com/repos/astro-informatics/purify/issues/events{/number}","events_url":"https://api.github.com/repos/astro-informatics/purify/events","assignees_url":"https://api.github.com/repos/astro-informatics/purify/assignees{/user}","branches_url":"https://api.github.com/repos/astro-informatics/purify/branches{/branch}","tags_url":"https://api.github.com/repos/astro-informatics/purify/tags","blobs_url":"https://api.github.com/repos/astro-informatics/purify/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/astro-informatics/purify/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/astro-informatics/purify/git/refs{/sha}","trees_url":"https://api.github.com/repos/astro-informatics/purify/git/trees{/sha}","statuses_url":"https://api.github.com/repos/astro-informatics/purify/statuses/{sha}","languages_url":"https://api.github.com/repos/astro-informatics/purify/languages","stargazers_url":"https://api.github.com/repos/astro-informatics/purify/stargazers","contributors_url":"https://api.github.com/repos/astro-informatics/purify/contributors","subscribers_url":"https://api.github.com/repos/astro-informatics/purify/subscribers","subscription_url":"https://api.github.com/repos/astro-informatics/purify/subscription","commits_url":"https://api.github.com/repos/astro-informatics/purify/commits{/sha}","git_commits_url":"https://api.github.com/repos/astro-informatics/purify/git/commits{/sha}","comments_url":"https://api.github.com/repos/astro-informatics/purify/comments{/number}","issue_comment_url":"https://api.github.com/repos/astro-informatics/purify/issues/comments{/number}","contents_url":"https://api.github.com/repos/astro-informatics/purify/contents/{+path}","compare_url":"https://api.github.com/repos/astro-informatics/purify/compare/{base}...{head}","merges_url":"https://api.github.com/repos/astro-informatics/purify/merges","archive_url":"https://api.github.com/repos/astro-informatics/purify/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/astro-informatics/purify/downloads","issues_url":"https://api.github.com/repos/astro-informatics/purify/issues{/number}","pulls_url":"https://api.github.com/repos/astro-informatics/purify/pulls{/number}","milestones_url":"https://api.github.com/repos/astro-informatics/purify/milestones{/number}","notifications_url":"https://api.github.com/repos/astro-informatics/purify/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/astro-informatics/purify/labels{/name}","releases_url":"https://api.github.com/repos/astro-informatics/purify/releases{/id}","deployments_url":"https://api.github.com/repos/astro-informatics/purify/deployments","created_at":"2015-03-13T14:05:57Z","updated_at":"2018-06-29T10:42:52Z","pushed_at":"2018-06-29T12:34:46Z","git_url":"git://github.com/astro-informatics/purify.git","ssh_url":"git@github.com:astro-informatics/purify.git","clone_url":"https://github.com/astro-informatics/purify.git","svn_url":"https://github.com/astro-informatics/purify","homepage":null,"size":111311,"stargazers_count":2,"watchers_count":2,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":36,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":0,"open_issues":36,"watchers":2,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/astro-informatics/purify/pulls/177"},"html":{"href":"https://github.com/astro-informatics/purify/pull/177"},"issue":{"href":"https://api.github.com/repos/astro-informatics/purify/issues/177"},"comments":{"href":"https://api.github.com/repos/astro-informatics/purify/issues/177/comments"},"review_comments":{"href":"https://api.github.com/repos/astro-informatics/purify/pulls/177/comments"},"review_comment":{"href":"https://api.github.com/repos/astro-informatics/purify/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/astro-informatics/purify/pulls/177/commits"},"statuses":{"href":"https://api.github.com/repos/astro-informatics/purify/statuses/e303573438c08a2099e734702275126e7670afb4"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"Luke-Pratley"}}