Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Roque
slapos
Commits
8c4bc846
Commit
8c4bc846
authored
Jun 21, 2013
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Raise UserError instead of Exception.
Buildout output is less scary this way.
parent
ddc4dafd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
slapos/recipe/neoppod.py
slapos/recipe/neoppod.py
+2
-1
No files found.
slapos/recipe/neoppod.py
View file @
8c4bc846
...
@@ -25,6 +25,7 @@
...
@@ -25,6 +25,7 @@
#
#
##############################################################################
##############################################################################
from
slapos.recipe.librecipe
import
GenericBaseRecipe
from
slapos.recipe.librecipe
import
GenericBaseRecipe
from
zc.buildout
import
UserError
class
NeoBaseRecipe
(
GenericBaseRecipe
):
class
NeoBaseRecipe
(
GenericBaseRecipe
):
...
@@ -39,7 +40,7 @@ class NeoBaseRecipe(GenericBaseRecipe):
...
@@ -39,7 +40,7 @@ class NeoBaseRecipe(GenericBaseRecipe):
# allocated.
# allocated.
# Only then can this recipe start succeeding and actually doing anything
# Only then can this recipe start succeeding and actually doing anything
# useful, as per NEO deploying constraints.
# useful, as per NEO deploying constraints.
raise
Exception
(
'"masters" parameter is mandatory'
)
raise
UserError
(
'"masters" parameter is mandatory'
)
option_list
=
[
option_list
=
[
options
[
'binary'
],
options
[
'binary'
],
'-l'
,
options
[
'logfile'
],
'-l'
,
options
[
'logfile'
],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment