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:
|
||||
build_dir = self._mime_processors[c_type](docker_resource)
|
||||
except Exception as ex:
|
||||
log_appender(ex.message, build_logs.ERROR)
|
||||
spawn_failure(ex.message, event_data)
|
||||
raise JobException(ex.message)
|
||||
cur_message = ex.message or 'Error while unpacking build package'
|
||||
log_appender(cur_message, build_logs.ERROR)
|
||||
spawn_failure(cur_message, event_data)
|
||||
raise JobException(cur_message)
|
||||
|
||||
# Start the build process.
|
||||
try:
|
||||
|
|
Reference in a new issue