From 51217057d12e375bada074daf6ab6c6112320c3e Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Thu, 31 Mar 2016 12:46:38 +0100 Subject: 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] (From meta-yocto rev: 2f00b2605353b9757a40636870ad20ee70bcab9d) Signed-off-by: Richard Purdie --- scripts/yocto-layer | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/yocto-layer') diff --git a/scripts/yocto-layer b/scripts/yocto-layer index 313d464b6e..356972ece8 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) -- cgit v1.2.3-54-g00ecf