{"action":"closed","issue":{"url":"https://api.github.com/repos/sparkleformation/sfn/issues/6","labels_url":"https://api.github.com/repos/sparkleformation/sfn/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/sparkleformation/sfn/issues/6/comments","events_url":"https://api.github.com/repos/sparkleformation/sfn/issues/6/events","html_url":"https://github.com/sparkleformation/sfn/issues/6","id":68204962,"number":6,"title":"sfn stack create fails without useful human readable output","user":{"login":"JonathanSerafini","id":736916,"avatar_url":"https://avatars.githubusercontent.com/u/736916?v=3","gravatar_id":"","url":"https://api.github.com/users/JonathanSerafini","html_url":"https://github.com/JonathanSerafini","followers_url":"https://api.github.com/users/JonathanSerafini/followers","following_url":"https://api.github.com/users/JonathanSerafini/following{/other_user}","gists_url":"https://api.github.com/users/JonathanSerafini/gists{/gist_id}","starred_url":"https://api.github.com/users/JonathanSerafini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JonathanSerafini/subscriptions","organizations_url":"https://api.github.com/users/JonathanSerafini/orgs","repos_url":"https://api.github.com/users/JonathanSerafini/repos","events_url":"https://api.github.com/users/JonathanSerafini/events{/privacy}","received_events_url":"https://api.github.com/users/JonathanSerafini/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-13T22:06:29Z","updated_at":"2015-04-14T23:50:41Z","closed_at":"2015-04-14T23:50:41Z","body":"sfn stack create may fail with the following error when CAPABILITIES_IAM are not set : ERROR: Miasma::Error::ApiError::RequestError: Bad Request\r\n\r\nMiasma itself appears to return the error, however it is squashed. \r\n\r\nTestable with the following patch : \r\n```\r\ndiff --git a/lib/sfn/command/create.rb b/lib/sfn/command/create.rb\r\nindex 531140d..c669b29 100644\r\n--- a/lib/sfn/command/create.rb\r\n+++ b/lib/sfn/command/create.rb\r\n@@ -66,7 +66,13 @@ module Sfn\r\n           stack.parameters = config[:parameters]\r\n\r\n           stack.template = translate_template(stack.template)\r\n-          stack.save\r\n+          begin\r\n+            stack.save\r\n+          rescue StandardError => e\r\n+            _debug(e)\r\n+            raise e\r\n+          end\r\n\r\n         end\r\n\r\n```"}}