From 06d4303a9f24e54b157b6da240165337040cd7bb Mon Sep 17 00:00:00 2001 From: Gavin D'souza Date: Wed, 11 Mar 2020 12:30:37 +0530 Subject: [PATCH] chore: print error message in case of failures --- bench/commands/make.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bench/commands/make.py b/bench/commands/make.py index 8963dde9..7fc799e6 100755 --- a/bench/commands/make.py +++ b/bench/commands/make.py @@ -38,10 +38,11 @@ def init(path, apps_path, frappe_path, frappe_branch, no_procfile, no_backups, c log('Bench {} initialized'.format(path), level=1) except SystemExit: pass - except: + except Exception as e: import os, shutil, time, six # add a sleep here so that the traceback of other processes doesnt overlap with the prompts time.sleep(1) + print(e) log("There was a problem while creating {}".format(path), level=2) if six.moves.input("Do you want to rollback these changes? [Y/n]: ").lower() == "y": print('Rolling back Bench "{}"'.format(path))