diff options
author | Sergii Dmytruk <sergii.dmytruk@3mdeb.com> | 2024-06-22 20:42:16 +0300 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2024-07-05 19:33:50 +0000 |
commit | 822ff966c6dcc8bf5dc9b87d0b4e4ac2f7102e8b (patch) | |
tree | db43faf00db035324f67570c5f218ac575e30300 /BaseTools | |
parent | 3be79ece37085f1037103e665e5df67b3a22b630 (diff) | |
download | edk2-822ff966c6dcc8bf5dc9b87d0b4e4ac2f7102e8b.tar.gz edk2-822ff966c6dcc8bf5dc9b87d0b4e4ac2f7102e8b.tar.bz2 edk2-822ff966c6dcc8bf5dc9b87d0b4e4ac2f7102e8b.zip |
BaseTools/GenerateCapsule.py: Better error message on --decode failure
Print error text from the exception.
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Diffstat (limited to 'BaseTools')
-rw-r--r-- | BaseTools/Source/Python/Capsule/GenerateCapsule.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/BaseTools/Source/Python/Capsule/GenerateCapsule.py b/BaseTools/Source/Python/Capsule/GenerateCapsule.py index de1dbbab5f..4d4e526432 100644 --- a/BaseTools/Source/Python/Capsule/GenerateCapsule.py +++ b/BaseTools/Source/Python/Capsule/GenerateCapsule.py @@ -873,8 +873,8 @@ if __name__ == '__main__': print ('GenerateCapsule: error: can not write embedded driver file {File}'.format (File = EmbeddedDriverPath))
sys.exit (1)
- except:
- print ('GenerateCapsule: error: can not decode capsule')
+ except Exception as Msg:
+ print ('GenerateCapsule: error: can not decode capsule: ' + str(Msg))
sys.exit (1)
GenerateOutputJson(PayloadJsonDescriptorList)
PayloadIndex = 0
|