From e2cf3b94f22f9d028500a3b8628c3cd0b381d65f Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Mon, 5 Feb 2018 08:47:35 +0100 Subject: [PATCH] improve the error message for thread local variables --- compiler/msgs.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/msgs.nim b/compiler/msgs.nim index 936b0172ab..954883b01f 100644 --- a/compiler/msgs.nim +++ b/compiler/msgs.nim @@ -370,7 +370,7 @@ const errXhasSideEffects: "\'$1\' can have side effects", errIteratorExpected: "iterator within for loop context expected", errLetNeedsInit: "'let' symbol requires an initialization", - errThreadvarCannotInit: "a thread var cannot be initialized explicitly", + errThreadvarCannotInit: "a thread var cannot be initialized explicitly; this would only run for the main thread", errWrongSymbolX: "usage of \'$1\' is a user-defined error", errIllegalCaptureX: "illegal capture '$1'", errXCannotBeClosure: "'$1' cannot have 'closure' calling convention",