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):
path = options.get('path')
if url:
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')
elif path:
options['compile-directory'] = path
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()):
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