mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-26 15:14:02 +02:00
BaseTools/GenerateCapsule.py: Better error message on --decode failure
Print error text from the exception. Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
This commit is contained in:
parent
3be79ece37
commit
822ff966c6
@ -873,8 +873,8 @@ if __name__ == '__main__':
|
|||||||
print ('GenerateCapsule: error: can not write embedded driver file {File}'.format (File = EmbeddedDriverPath))
|
print ('GenerateCapsule: error: can not write embedded driver file {File}'.format (File = EmbeddedDriverPath))
|
||||||
sys.exit (1)
|
sys.exit (1)
|
||||||
|
|
||||||
except:
|
except Exception as Msg:
|
||||||
print ('GenerateCapsule: error: can not decode capsule')
|
print ('GenerateCapsule: error: can not decode capsule: ' + str(Msg))
|
||||||
sys.exit (1)
|
sys.exit (1)
|
||||||
GenerateOutputJson(PayloadJsonDescriptorList)
|
GenerateOutputJson(PayloadJsonDescriptorList)
|
||||||
PayloadIndex = 0
|
PayloadIndex = 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user