Add a default message if the build pack MIME processor fails
This commit is contained in:
parent
8681dd9cb9
commit
736af3165b
1 changed files with 4 additions and 3 deletions
|
@ -560,9 +560,10 @@ class DockerfileBuildWorker(Worker):
|
||||||
try:
|
try:
|
||||||
build_dir = self._mime_processors[c_type](docker_resource)
|
build_dir = self._mime_processors[c_type](docker_resource)
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
log_appender(ex.message, build_logs.ERROR)
|
cur_message = ex.message or 'Error while unpacking build package'
|
||||||
spawn_failure(ex.message, event_data)
|
log_appender(cur_message, build_logs.ERROR)
|
||||||
raise JobException(ex.message)
|
spawn_failure(cur_message, event_data)
|
||||||
|
raise JobException(cur_message)
|
||||||
|
|
||||||
# Start the build process.
|
# Start the build process.
|
||||||
try:
|
try:
|
||||||
|
|
Reference in a new issue