Merge "releasetools: Log the exceptions before rethrowing."

am: 9c3a481b5f

Change-Id: I43692528239020187defd6dcdc1f262eb5acfccb
This commit is contained in:
Tao Bao
2018-11-06 15:41:28 -08:00
committed by android-build-merger

View File

@@ -168,6 +168,7 @@ def Append2Simg(sparse_image_path, unsparse_image_path, error_message):
try:
common.RunAndCheckOutput(cmd)
except:
logger.exception(error_message)
raise BuildVerityImageError(error_message)
@@ -182,6 +183,7 @@ def Append(target, file_to_append, error_message):
for line in input_file:
out_file.write(line)
except IOError:
logger.exception(error_message)
raise BuildVerityImageError(error_message)