Skip to content

Commit

Permalink
Better error message for error validating project name
Browse files Browse the repository at this point in the history
  • Loading branch information
yakky committed Dec 6, 2014
1 parent 3c0beee commit 7407b6b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions djangocms_installer/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,9 @@ def parse(args):

# First of all, check if the project name is valid
if not validate_project(args.project_name):
sys.stderr.write("Project name '%s' is not a valid app name. "
"Please use only numbers, letters and underscores.\n"
sys.stderr.write(u"Project name '%s' is not a valid app name, "
u"or it's already defined. "
u"Please use only numbers, letters and underscores.\n"
% args.project_name)
sys.exit(3)

Expand Down

0 comments on commit 7407b6b

Please sign in to comment.