Skip to content

Commit

Permalink
better error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Fiers committed Jun 3, 2012
1 parent c9e51c6 commit 50d2ca7
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions lib/python/moa/plugin/system/newjob.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,9 @@ def new(job, args):

wd = job.wd

if os.path.exists(os.path.join(
wd, '.moa', 'template')) and \
not args.force:
l.error("There is already a Moa job in")
l.error(wd)
l.error("use -f to override")

if os.path.exists(os.path.join(wd, '.moa', 'template')) and not args.force:
moa.ui.exitError("This directory already contains a moa job\nUse -f to override")

if not title:
moa.ui.warn("Please define a title for this job")

Expand Down

0 comments on commit 50d2ca7

Please sign in to comment.