diff options
author | John Hodge <tpg@ucc.asn.au> | 2019-01-28 16:40:21 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2019-01-28 16:40:21 +0800 |
commit | fbeb6e8fe4e8600f84b08a0014f2f6a2713789ce (patch) | |
tree | e90f84c695c345055c49374e3602f0c8729e942e /src | |
parent | 2fc8e093a36a8b39d4937b1f863fe1d471350fdd (diff) | |
download | mrust-fbeb6e8fe4e8600f84b08a0014f2f6a2713789ce.tar.gz |
Resolve Index - (minor) Better error mesage on collision
Diffstat (limited to 'src')
-rw-r--r-- | src/resolve/index.cpp | 2 |
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 ) { |