Add a default message if the build pack MIME processor fails

This commit is contained in:
Joseph Schorr 2014-08-15 18:23:43 -04:00
parent 8681dd9cb9
commit 736af3165b

View file

@ -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: