Commit d68c3b68 authored by Ophélie Gagnard's avatar Ophélie Gagnard

Fix two error messages.

parent 129ecae6
...@@ -81,12 +81,12 @@ class Recipe(EnvironMixin): ...@@ -81,12 +81,12 @@ class Recipe(EnvironMixin):
path = options.get('path') path = options.get('path')
if url: if url:
if path: if path:
raise UserError('You must provide either "url" or "path".') raise UserError('You must use either "url" or "path", not both!')
options['compile-directory'] = os.path.join(location, '.build') options['compile-directory'] = os.path.join(location, '.build')
elif path: elif path:
options['compile-directory'] = path options['compile-directory'] = path
else: else:
raise UserError('You must use either "url" or "path", not both!') raise UserError('You must provide either "url" or "path".')
for k, v in list(options.items()): for k, v in list(options.items()):
if '@@LOCATION@@' in v: if '@@LOCATION@@' in v:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment