From 0a6ac772eea85717b36012f5a07aa9da246bdfeb Mon Sep 17 00:00:00 2001 From: Anthony Plunkett Date: Tue, 9 Feb 2016 17:47:11 -0400 Subject: [PATCH] More helpful user-actionable failure. --- assets/install.ps1 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/assets/install.ps1 b/assets/install.ps1 index 80fe01e4..bad93a77 100644 --- a/assets/install.ps1 +++ b/assets/install.ps1 @@ -97,19 +97,22 @@ def main(): install_dir, lib_dir = find_location() if install_dir == None: - print 'Lektor seems to be already installed' + print ' Lektor seems to be already installed at:' + print ' {}'.format(get_location()) while 1: input = raw_input( 'Delete existing and reinstall? [Yn]' ).lower().strip() if input in ('', 'y'): - shutil.rmtree(get_location()) + shutil.rmtree(get_location(), onerror=deletion_error) break elif input == 'n': print 'Aborted!' sys.exit() + install_dir, lib_dir = find_location() + print ' Installing at: %s' % install_dir while 1: input = raw_input('Continue? [Yn] ').lower().strip()