summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Hodge <tpg@ucc.asn.au>2019-01-28 16:40:21 +0800
committerJohn Hodge <tpg@ucc.asn.au>2019-01-28 16:40:21 +0800
commitfbeb6e8fe4e8600f84b08a0014f2f6a2713789ce (patch)
treee90f84c695c345055c49374e3602f0c8729e942e /src
parent2fc8e093a36a8b39d4937b1f863fe1d471350fdd (diff)
downloadmrust-fbeb6e8fe4e8600f84b08a0014f2f6a2713789ce.tar.gz
Resolve Index - (minor) Better error mesage on collision
Diffstat (limited to 'src')
-rw-r--r--src/resolve/index.cpp2
1 files changed, 1 insertions, 1 deletions
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 )
{