forked from OSchip/llvm-project
[asan_symbolize] Provide better error message when extracting the UUID of a binary fails
rdar://problem/49476995 llvm-svn: 367378
This commit is contained in:
parent
be019c7a1f
commit
23fd828d4e
|
@ -756,7 +756,9 @@ def get_uuid_from_binary(path_to_binary, arch=None):
|
|||
uuid = split_uuid_line[1]
|
||||
break
|
||||
if uuid is None:
|
||||
raise GetUUIDFromBinaryException('Failed to retrieve UUID')
|
||||
logging.error('Failed to retrieve UUID from binary {}'.format(path_to_binary))
|
||||
logging.error('otool output was:\n{}'.format(output_str))
|
||||
raise GetUUIDFromBinaryException('Failed to retrieve UUID from binary "{}"'.format(path_to_binary))
|
||||
else:
|
||||
# Update cache
|
||||
_get_uuid_from_binary_cache[cache_key] = uuid
|
||||
|
|
Loading…
Reference in New Issue