From fbeb6e8fe4e8600f84b08a0014f2f6a2713789ce Mon Sep 17 00:00:00 2001 From: John Hodge Date: Mon, 28 Jan 2019 16:40:21 +0800 Subject: Resolve Index - (minor) Better error mesage on collision --- src/resolve/index.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/resolve/index.cpp b/src/resolve/index.cpp index 6051b82d..ec1fcd8d 100644 --- a/src/resolve/index.cpp +++ b/src/resolve/index.cpp @@ -67,7 +67,7 @@ void _add_item(const Span& sp, AST::Module& mod, IndexName location, const ::std { if( error_on_collision ) { - ERROR(sp, E0000, "Duplicate definition of name '" << name << "' in " << location << " scope (" << mod.path() << ")"); + ERROR(sp, E0000, "Duplicate definition of name '" << name << "' in " << location << " scope (" << mod.path() << ") " << ir << ", and " << list[name].path); } else if( list.at(name).path == ir ) { -- cgit v1.2.3