From b3b5e0569da609c83c1839ce28b8bd72a43855be Mon Sep 17 00:00:00 2001 From: Bung Date: Wed, 4 Oct 2023 02:42:43 +0800 Subject: [PATCH] Update compiler/front/msgs.nim Co-authored-by: zerbina <100542850+zerbina@users.noreply.github.com> --- compiler/front/msgs.nim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/compiler/front/msgs.nim b/compiler/front/msgs.nim index 2953fe6d68d..de15b227512 100644 --- a/compiler/front/msgs.nim +++ b/compiler/front/msgs.nim @@ -658,8 +658,9 @@ template globalReport*(conf: ConfigRef, report: ReportTypes) = proc reportAndForceRaise*( conf: ConfigRef, r: Report, reportFrom: InstantiationInfo) = - ## always call `raiseRecoverableError` except if `doAbort` was returned - ## by the `structuredReportHook`. + ## Similar to `handleReport`, but, unless overridden with aborting + ## (`doAbort`) by the structured report hook, always raises a recoverable + ## error. var rep = r fillReport(conf, rep, reportFrom)