Merge "releasetools: Log the exceptions before rethrowing."
This commit is contained in:
commit
9c3a481b5f
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue