From b02bc661974caea6a6c34b78b2df9af13e917d7c Mon Sep 17 00:00:00 2001 From: Timothee Cour Date: Wed, 22 Aug 2018 23:19:03 -0700 Subject: [PATCH] better formatting for recursive module dependency (#8735) --- compiler/lookups.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/lookups.nim b/compiler/lookups.nim index 1b5bee008..7f0882754 100644 --- a/compiler/lookups.nim +++ b/compiler/lookups.nim @@ -259,7 +259,7 @@ proc errorUseQualifier*(c: PContext; info: TLineInfo; s: PSym) = proc errorUndeclaredIdentifier*(c: PContext; info: TLineInfo; name: string) = var err = "undeclared identifier: '" & name & "'" if c.recursiveDep.len > 0: - err.add "\nThis might be caused by a recursive module dependency: " + err.add "\nThis might be caused by a recursive module dependency:\n" err.add c.recursiveDep # prevent excessive errors for 'nim check' c.recursiveDep = ""