Skip to content

Commit

Permalink
Handle missing top-level makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
avirshup committed Oct 3, 2017
1 parent aca7b3c commit 6569454
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dockermake/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ def run(args):
return

if not os.path.exists(args.makefile):
print('No docker makefile found at path "%s"'%args.makefile)
msg = 'No docker makefile found at path "%s"' % args.makefile
if args.makefile == 'DockerMake.yml':
print('Type `docker-make --help` to see usage.')
sys.exit(1)
msg += '\nType `docker-make --help` to see usage.'
raise errors.MissingFileError(msg)

defs = ImageDefs(args.makefile)

Expand Down

0 comments on commit 6569454

Please sign in to comment.