From a7ac29322e6062c581abd420784676e10ef2242d Mon Sep 17 00:00:00 2001 From: araq Date: Thu, 22 Jan 2026 11:15:26 +0100 Subject: [PATCH] IC: better error handling --- compiler/pipelines.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/pipelines.nim b/compiler/pipelines.nim index 843ed49ad0..3d094bd7b7 100644 --- a/compiler/pipelines.nim +++ b/compiler/pipelines.nim @@ -286,7 +286,7 @@ proc compilePipelineModule*(graph: ModuleGraph; fileIdx: FileIndex; flags: TSymF let precomp = moduleFromNifFile(graph, fileIdx) if precomp.module == nil: let nifPath = toNifFilename(graph.config, fileIdx) - localError(graph.config, unknownLineInfo, + globalError(graph.config, unknownLineInfo, "nim m requires precompiled NIF for import: " & toFullPath(graph.config, fileIdx) & " (expected: " & nifPath & ")") return nil # Don't fall through to compile from source