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)