From bb58317939d7fa4ee2bb1f95760e6d6db7bfa06e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jurko=20Gospodneti=C4=87?= Date: Tue, 7 Aug 2012 13:09:31 +0000 Subject: [PATCH] Boost Build cleanup - errors.backtrace rule no longer displays an extra empty line if asked to list user modules only and there are no user modules in the current call stack. [SVN r79904] --- v2/kernel/errors.jam | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/v2/kernel/errors.jam b/v2/kernel/errors.jam index aaada5639..8ebabfd9e 100644 --- a/v2/kernel/errors.jam +++ b/v2/kernel/errors.jam @@ -23,7 +23,10 @@ rule backtrace ( skip-frames prefix messages * : * ) if $(.user-modules-only) { local bt = [ nearest-user-location ] ; - ECHO "$(prefix) at $(bt) " ; + if $(bt) + { + ECHO "$(prefix) at $(bt) " ; + } for local n in $(args) { if $($(n))-is-defined