From: Richard Purdie Date: Thu, 31 Mar 2016 11:46:38 +0000 (+0100) Subject: scripts, lib: Don't limit traceback lengths to arbitrary values X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2f00b2605353b9757a40636870ad20ee70bcab9d;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git scripts, lib: Don't limit traceback lengths to arbitrary values There appears to have been a lot of copy and pasting of the code which prints tracebacks upon failure and limits the stack trace to 5 entries. This obscures the real error and is very confusing to the user it look me an age to work out why some tracebacks weren't useful. This patch removes the limit, making tracebacks much more useful for debugging. [YOCTO #9230] Signed-off-by: Richard Purdie --- diff --git a/scripts/yocto-bsp b/scripts/yocto-bsp index 2d9453fbe8f..82a050ebdca 100755 --- a/scripts/yocto-bsp +++ b/scripts/yocto-bsp @@ -151,6 +151,6 @@ if __name__ == "__main__": except Exception: ret = 1 import traceback - traceback.print_exc(5) + traceback.print_exc() sys.exit(ret) diff --git a/scripts/yocto-kernel b/scripts/yocto-kernel index c9b2821e009..daaad075201 100755 --- a/scripts/yocto-kernel +++ b/scripts/yocto-kernel @@ -395,5 +395,5 @@ if __name__ == "__main__": except Exception: ret = 1 import traceback - traceback.print_exc(5) + traceback.print_exc() sys.exit(ret) diff --git a/scripts/yocto-layer b/scripts/yocto-layer index 313d464b6e9..356972ece81 100755 --- a/scripts/yocto-layer +++ b/scripts/yocto-layer @@ -146,6 +146,6 @@ if __name__ == "__main__": except Exception: ret = 1 import traceback - traceback.print_exc(5) + traceback.print_exc() sys.exit(ret)