Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Commit

Permalink
Changed message in case of failure
Browse files Browse the repository at this point in the history
  In case of exception, printing the message might not be enough,
  as the message might be empty, while strerror, errno and filename
  contain useful information, which will save time.
  • Loading branch information
Benedetto Lo Giudice committed Jun 15, 2015
1 parent 7fcc46f commit a516ce2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bootstrap_cfn/fab_tasks.py
Expand Up @@ -341,8 +341,9 @@ def cfn_create():
# Inject security groups in stack template and create stacks.
try:
stack = cfn.create(stack_name, cfn_config.process())
except Exception as e:
abort(red("Failed to create: {error}".format(error=e.message)))
except:
import traceback
abort(red("Failed to create: {error}".format(error=traceback.format_exc())))

print green("\nSTACK {0} CREATING...\n").format(stack_name)

Expand Down

0 comments on commit a516ce2

Please sign in to comment.