{"action":"created","comment":{"url":"https://api.github.com/repos/envato/stack_master/pulls/comments/44619499","id":44619499,"diff_hunk":"@@ -16,7 +16,12 @@ def initialize(config, stack_definition, parameters)\n \n     def resolve\n       @parameters.reduce({}) do |parameters, (key, value)|\n-        parameters[key] = resolve_parameter_value(value)\n+        begin\n+          parameters[key] = resolve_parameter_value(value)\n+        rescue InvalidParameter\n+          say \"Unable to resolve parameter #{key.inspect} value causing error: #{$!.message}\"","path":"lib/stack_master/parameter_resolver.rb","position":8,"original_position":8,"commit_id":"8e4b1ebaaf25f45bb072014c67239a0deb6410db","original_commit_id":"8e4b1ebaaf25f45bb072014c67239a0deb6410db","user":{"login":"gstamp","id":93839,"avatar_url":"https://avatars.githubusercontent.com/u/93839?v=3","gravatar_id":"","url":"https://api.github.com/users/gstamp","html_url":"https://github.com/gstamp","followers_url":"https://api.github.com/users/gstamp/followers","following_url":"https://api.github.com/users/gstamp/following{/other_user}","gists_url":"https://api.github.com/users/gstamp/gists{/gist_id}","starred_url":"https://api.github.com/users/gstamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gstamp/subscriptions","organizations_url":"https://api.github.com/users/gstamp/orgs","repos_url":"https://api.github.com/users/gstamp/repos","events_url":"https://api.github.com/users/gstamp/events{/privacy}","received_events_url":"https://api.github.com/users/gstamp/received_events","type":"User","site_admin":false},"body":"You probably want\r\n\r\n```\r\nStackMaster.stdout.puts \r\n```","created_at":"2015-11-12T03:57:11Z","updated_at":"2015-11-12T03:57:11Z","html_url":"https://github.com/envato/stack_master/pull/56#discussion_r44619499","pull_request_url":"https://api.github.com/repos/envato/stack_master/pulls/56","_links":{"self":{"href":"https://api.github.com/repos/envato/stack_master/pulls/comments/44619499"},"html":{"href":"https://github.com/envato/stack_master/pull/56#discussion_r44619499"},"pull_request":{"href":"https://api.github.com/repos/envato/stack_master/pulls/56"}}},"pull_request":{"url":"https://api.github.com/repos/envato/stack_master/pulls/56","id":50469232,"html_url":"https://github.com/envato/stack_master/pull/56","diff_url":"https://github.com/envato/stack_master/pull/56.diff","patch_url":"https://github.com/envato/stack_master/pull/56.patch","issue_url":"https://api.github.com/repos/envato/stack_master/issues/56","number":56,"state":"open","locked":false,"title":"Improve error messages when parameters are broken","user":{"login":"andrewjhumphrey","id":520641,"avatar_url":"https://avatars.githubusercontent.com/u/520641?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewjhumphrey","html_url":"https://github.com/andrewjhumphrey","followers_url":"https://api.github.com/users/andrewjhumphrey/followers","following_url":"https://api.github.com/users/andrewjhumphrey/following{/other_user}","gists_url":"https://api.github.com/users/andrewjhumphrey/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewjhumphrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewjhumphrey/subscriptions","organizations_url":"https://api.github.com/users/andrewjhumphrey/orgs","repos_url":"https://api.github.com/users/andrewjhumphrey/repos","events_url":"https://api.github.com/users/andrewjhumphrey/events{/privacy}","received_events_url":"https://api.github.com/users/andrewjhumphrey/received_events","type":"User","site_admin":false},"body":"Before:\n``` MacBook-Pro:stackmaster andrewhumphrey$ sm apply staging \nmarket-db-replicas error: 5. Use --trace to view backtrace\n```\n\nAfter:\n``` MacBook-Pro:stackmaster andrewhumphrey$ sm apply staging \nmarket-db-replicas Unable to resolve parameter \"DbAllocatedStorage\" value causing error: 5\n```","created_at":"2015-11-12T03:55:32Z","updated_at":"2015-11-12T03:57:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d1e9ba8b3676596305c8492d19cf53281c702710","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/envato/stack_master/pulls/56/commits","review_comments_url":"https://api.github.com/repos/envato/stack_master/pulls/56/comments","review_comment_url":"https://api.github.com/repos/envato/stack_master/pulls/comments{/number}","comments_url":"https://api.github.com/repos/envato/stack_master/issues/56/comments","statuses_url":"https://api.github.com/repos/envato/stack_master/statuses/8e4b1ebaaf25f45bb072014c67239a0deb6410db","head":{"label":"envato:parameter-errors","ref":"parameter-errors","sha":"8e4b1ebaaf25f45bb072014c67239a0deb6410db","user":{"login":"envato","id":14786,"avatar_url":"https://avatars.githubusercontent.com/u/14786?v=3","gravatar_id":"","url":"https://api.github.com/users/envato","html_url":"https://github.com/envato","followers_url":"https://api.github.com/users/envato/followers","following_url":"https://api.github.com/users/envato/following{/other_user}","gists_url":"https://api.github.com/users/envato/gists{/gist_id}","starred_url":"https://api.github.com/users/envato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/envato/subscriptions","organizations_url":"https://api.github.com/users/envato/orgs","repos_url":"https://api.github.com/users/envato/repos","events_url":"https://api.github.com/users/envato/events{/privacy}","received_events_url":"https://api.github.com/users/envato/received_events","type":"Organization","site_admin":false},"repo":{"id":44935321,"name":"stack_master","full_name":"envato/stack_master","owner":{"login":"envato","id":14786,"avatar_url":"https://avatars.githubusercontent.com/u/14786?v=3","gravatar_id":"","url":"https://api.github.com/users/envato","html_url":"https://github.com/envato","followers_url":"https://api.github.com/users/envato/followers","following_url":"https://api.github.com/users/envato/following{/other_user}","gists_url":"https://api.github.com/users/envato/gists{/gist_id}","starred_url":"https://api.github.com/users/envato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/envato/subscriptions","organizations_url":"https://api.github.com/users/envato/orgs","repos_url":"https://api.github.com/users/envato/repos","events_url":"https://api.github.com/users/envato/events{/privacy}","received_events_url":"https://api.github.com/users/envato/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/envato/stack_master","description":"The missing CloudFormation tool","fork":false,"url":"https://api.github.com/repos/envato/stack_master","forks_url":"https://api.github.com/repos/envato/stack_master/forks","keys_url":"https://api.github.com/repos/envato/stack_master/keys{/key_id}","collaborators_url":"https://api.github.com/repos/envato/stack_master/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/envato/stack_master/teams","hooks_url":"https://api.github.com/repos/envato/stack_master/hooks","issue_events_url":"https://api.github.com/repos/envato/stack_master/issues/events{/number}","events_url":"https://api.github.com/repos/envato/stack_master/events","assignees_url":"https://api.github.com/repos/envato/stack_master/assignees{/user}","branches_url":"https://api.github.com/repos/envato/stack_master/branches{/branch}","tags_url":"https://api.github.com/repos/envato/stack_master/tags","blobs_url":"https://api.github.com/repos/envato/stack_master/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/envato/stack_master/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/envato/stack_master/git/refs{/sha}","trees_url":"https://api.github.com/repos/envato/stack_master/git/trees{/sha}","statuses_url":"https://api.github.com/repos/envato/stack_master/statuses/{sha}","languages_url":"https://api.github.com/repos/envato/stack_master/languages","stargazers_url":"https://api.github.com/repos/envato/stack_master/stargazers","contributors_url":"https://api.github.com/repos/envato/stack_master/contributors","subscribers_url":"https://api.github.com/repos/envato/stack_master/subscribers","subscription_url":"https://api.github.com/repos/envato/stack_master/subscription","commits_url":"https://api.github.com/repos/envato/stack_master/commits{/sha}","git_commits_url":"https://api.github.com/repos/envato/stack_master/git/commits{/sha}","comments_url":"https://api.github.com/repos/envato/stack_master/comments{/number}","issue_comment_url":"https://api.github.com/repos/envato/stack_master/issues/comments{/number}","contents_url":"https://api.github.com/repos/envato/stack_master/contents/{+path}","compare_url":"https://api.github.com/repos/envato/stack_master/compare/{base}...{head}","merges_url":"https://api.github.com/repos/envato/stack_master/merges","archive_url":"https://api.github.com/repos/envato/stack_master/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/envato/stack_master/downloads","issues_url":"https://api.github.com/repos/envato/stack_master/issues{/number}","pulls_url":"https://api.github.com/repos/envato/stack_master/pulls{/number}","milestones_url":"https://api.github.com/repos/envato/stack_master/milestones{/number}","notifications_url":"https://api.github.com/repos/envato/stack_master/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/envato/stack_master/labels{/name}","releases_url":"https://api.github.com/repos/envato/stack_master/releases{/id}","created_at":"2015-10-25T23:40:28Z","updated_at":"2015-11-05T08:27:10Z","pushed_at":"2015-11-12T03:55:32Z","git_url":"git://github.com/envato/stack_master.git","ssh_url":"git@github.com:envato/stack_master.git","clone_url":"https://github.com/envato/stack_master.git","svn_url":"https://github.com/envato/stack_master","homepage":"https://github.com/envato/stack_master","size":1375,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"base":{"label":"envato:master","ref":"master","sha":"05a86072c5a2e22a1090c546708eef12195a8a0d","user":{"login":"envato","id":14786,"avatar_url":"https://avatars.githubusercontent.com/u/14786?v=3","gravatar_id":"","url":"https://api.github.com/users/envato","html_url":"https://github.com/envato","followers_url":"https://api.github.com/users/envato/followers","following_url":"https://api.github.com/users/envato/following{/other_user}","gists_url":"https://api.github.com/users/envato/gists{/gist_id}","starred_url":"https://api.github.com/users/envato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/envato/subscriptions","organizations_url":"https://api.github.com/users/envato/orgs","repos_url":"https://api.github.com/users/envato/repos","events_url":"https://api.github.com/users/envato/events{/privacy}","received_events_url":"https://api.github.com/users/envato/received_events","type":"Organization","site_admin":false},"repo":{"id":44935321,"name":"stack_master","full_name":"envato/stack_master","owner":{"login":"envato","id":14786,"avatar_url":"https://avatars.githubusercontent.com/u/14786?v=3","gravatar_id":"","url":"https://api.github.com/users/envato","html_url":"https://github.com/envato","followers_url":"https://api.github.com/users/envato/followers","following_url":"https://api.github.com/users/envato/following{/other_user}","gists_url":"https://api.github.com/users/envato/gists{/gist_id}","starred_url":"https://api.github.com/users/envato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/envato/subscriptions","organizations_url":"https://api.github.com/users/envato/orgs","repos_url":"https://api.github.com/users/envato/repos","events_url":"https://api.github.com/users/envato/events{/privacy}","received_events_url":"https://api.github.com/users/envato/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/envato/stack_master","description":"The missing CloudFormation tool","fork":false,"url":"https://api.github.com/repos/envato/stack_master","forks_url":"https://api.github.com/repos/envato/stack_master/forks","keys_url":"https://api.github.com/repos/envato/stack_master/keys{/key_id}","collaborators_url":"https://api.github.com/repos/envato/stack_master/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/envato/stack_master/teams","hooks_url":"https://api.github.com/repos/envato/stack_master/hooks","issue_events_url":"https://api.github.com/repos/envato/stack_master/issues/events{/number}","events_url":"https://api.github.com/repos/envato/stack_master/events","assignees_url":"https://api.github.com/repos/envato/stack_master/assignees{/user}","branches_url":"https://api.github.com/repos/envato/stack_master/branches{/branch}","tags_url":"https://api.github.com/repos/envato/stack_master/tags","blobs_url":"https://api.github.com/repos/envato/stack_master/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/envato/stack_master/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/envato/stack_master/git/refs{/sha}","trees_url":"https://api.github.com/repos/envato/stack_master/git/trees{/sha}","statuses_url":"https://api.github.com/repos/envato/stack_master/statuses/{sha}","languages_url":"https://api.github.com/repos/envato/stack_master/languages","stargazers_url":"https://api.github.com/repos/envato/stack_master/stargazers","contributors_url":"https://api.github.com/repos/envato/stack_master/contributors","subscribers_url":"https://api.github.com/repos/envato/stack_master/subscribers","subscription_url":"https://api.github.com/repos/envato/stack_master/subscription","commits_url":"https://api.github.com/repos/envato/stack_master/commits{/sha}","git_commits_url":"https://api.github.com/repos/envato/stack_master/git/commits{/sha}","comments_url":"https://api.github.com/repos/envato/stack_master/comments{/number}","issue_comment_url":"https://api.github.com/repos/envato/stack_master/issues/comments{/number}","contents_url":"https://api.github.com/repos/envato/stack_master/contents/{+path}","compare_url":"https://api.github.com/repos/envato/stack_master/compare/{base}...{head}","merges_url":"https://api.github.com/repos/envato/stack_master/merges","archive_url":"https://api.github.com/repos/envato/stack_master/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/envato/stack_master/downloads","issues_url":"https://api.github.com/repos/envato/stack_master/issues{/number}","pulls_url":"https://api.github.com/repos/envato/stack_master/pulls{/number}","milestones_url":"https://api.github.com/repos/envato/stack_master/milestones{/number}","notifications_url":"https://api.github.com/repos/envato/stack_master/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/envato/stack_master/labels{/name}","releases_url":"https://api.github.com/repos/envato/stack_master/releases{/id}","created_at":"2015-10-25T23:40:28Z","updated_at":"2015-11-05T08:27:10Z","pushed_at":"2015-11-12T03:55:32Z","git_url":"git://github.com/envato/stack_master.git","ssh_url":"git@github.com:envato/stack_master.git","clone_url":"https://github.com/envato/stack_master.git","svn_url":"https://github.com/envato/stack_master","homepage":"https://github.com/envato/stack_master","size":1375,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/envato/stack_master/pulls/56"},"html":{"href":"https://github.com/envato/stack_master/pull/56"},"issue":{"href":"https://api.github.com/repos/envato/stack_master/issues/56"},"comments":{"href":"https://api.github.com/repos/envato/stack_master/issues/56/comments"},"review_comments":{"href":"https://api.github.com/repos/envato/stack_master/pulls/56/comments"},"review_comment":{"href":"https://api.github.com/repos/envato/stack_master/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/envato/stack_master/pulls/56/commits"},"statuses":{"href":"https://api.github.com/repos/envato/stack_master/statuses/8e4b1ebaaf25f45bb072014c67239a0deb6410db"}}}}