summaryrefslogtreecommitdiffstats
path: root/BaseTools
diff options
context:
space:
mode:
authorSergii Dmytruk <sergii.dmytruk@3mdeb.com>2024-06-22 20:42:16 +0300
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-07-05 19:33:50 +0000
commit822ff966c6dcc8bf5dc9b87d0b4e4ac2f7102e8b (patch)
treedb43faf00db035324f67570c5f218ac575e30300 /BaseTools
parent3be79ece37085f1037103e665e5df67b3a22b630 (diff)
downloadedk2-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.py4
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