From 1a9f76c27318fb98d16a49971564f569f023e1a9 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Wed, 11 Jul 2018 12:42:48 +0200 Subject: [PATCH] Tweak formatting in error.g --- lib/error.g | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/lib/error.g b/lib/error.g index 522a979b76..74bc769450 100644 --- a/lib/error.g +++ b/lib/error.g @@ -117,7 +117,7 @@ BIND_GLOBAL("ErrorInner", printEarlyMessage, printEarlyTraceback, lastErrorStream, shellOut, shellIn; - context := arg[1].context; + context := arg[1].context; if not IsLVarsBag(context) then PrintTo("*errout*", "ErrorInner: option context must be a local variables bag\n"); LEAVE_ALL_NAMESPACES(); @@ -271,10 +271,8 @@ BIND_GLOBAL("ErrorInner", if SHOULD_QUIT_ON_BREAK() then # Again, the default is to not print the rest of the traceback. # If AlwaysPrintTracebackOnError is true we do so anyways. - if - AlwaysPrintTracebackOnError - and IsBound(OnBreak) and IsFunction(OnBreak) - then + if AlwaysPrintTracebackOnError + and IsBound(OnBreak) and IsFunction(OnBreak) then OnBreak(); fi; FORCE_QUIT_GAP(1); @@ -317,10 +315,10 @@ BIND_GLOBAL("ErrorInner", if IsBound(OnQuit) and IsFunction(OnQuit) then OnQuit(); fi; - if ErrorLevel = 0 then LEAVE_ALL_NAMESPACES(); fi; + if ErrorLevel = 0 then LEAVE_ALL_NAMESPACES(); fi; if not justQuit then - # dont try and do anything else after this before the longjump - SetUserHasQuit(1); + # dont try and do anything else after this before the longjump + SetUserHasQuit(1); fi; JUMP_TO_CATCH(3); fi;