Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nirbheek Chauhan
cerbero
Commits
4231c4f5
Commit
4231c4f5
authored
Mar 18, 2013
by
Andoni Morales Alastruey
Browse files
oven: print the original tracebac in build step errors
parent
01e26fc2
Changes
2
Hide whitespace changes
Inline
Side-by-side
cerbero/build/oven.py
View file @
4231c4f5
...
...
@@ -18,6 +18,7 @@
import
tempfile
import
shutil
import
traceback
from
cerbero.errors
import
BuildStepError
,
FatalError
from
cerbero.build.recipe
import
Recipe
,
BuildSteps
...
...
@@ -103,9 +104,8 @@ class Oven (object):
self
.
cookbook
.
update_step_status
(
recipe
.
name
,
step
)
except
FatalError
:
self
.
_handle_build_step_error
(
recipe
,
step
)
except
Exception
,
ex
:
raise
FatalError
(
_
(
"Error performing step %s: %s"
)
%
(
step
,
ex
))
except
Exception
:
raise
BuildStepError
(
recipe
,
step
,
traceback
.
format_exc
())
self
.
cookbook
.
update_build_status
(
recipe
.
name
,
False
)
if
self
.
missing_files
:
...
...
cerbero/errors.py
View file @
4231c4f5
...
...
@@ -47,9 +47,9 @@ class CommandError(CerberoException):
class
BuildStepError
(
CerberoException
):
def
__init__
(
self
,
recipe
,
step
):
def
__init__
(
self
,
recipe
,
step
,
trace
=
''
):
CerberoException
.
__init__
(
self
,
_
(
"Recipe '%s' failed at the build "
"step '%s'"
)
%
(
recipe
,
step
))
"step '%s'
\n
%s
"
)
%
(
recipe
,
step
,
trace
))
class
RecipeNotFoundError
(
CerberoException
):
...
...
Write
Preview
Supports
Markdown
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