diff options
Diffstat (limited to 'BaseTools/Source/Python/BPDG')
-rw-r--r-- | BaseTools/Source/Python/BPDG/BPDG.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/BPDG/BPDG.py b/BaseTools/Source/Python/BPDG/BPDG.py index 2ec1516c0a..c30e062a69 100644 --- a/BaseTools/Source/Python/BPDG/BPDG.py +++ b/BaseTools/Source/Python/BPDG/BPDG.py @@ -153,7 +153,10 @@ def StartBpdg(InputFileName, MapFileName, VpdFileName, Force): EdkLogger.info("- Vpd pcd fixed done! -")
if __name__ == '__main__':
- r = main()
+ try:
+ r = main()
+ except FatalError as e:
+ r = e
## 0-127 is a safe return range, and 1 is a standard default error
if r < 0 or r > 127: r = 1
sys.exit(r)
|