From 742e5b259a8c88e69f09ede7312673157cd77a1f Mon Sep 17 00:00:00 2001 From: LianaHus Date: Fri, 2 Oct 2015 14:41:40 +0200 Subject: added Error class for all kind of errors Conflicts: libsolidity/Exceptions.h --- libsolidity/CompilerStack.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libsolidity/CompilerStack.cpp') diff --git a/libsolidity/CompilerStack.cpp b/libsolidity/CompilerStack.cpp index 8c1cd8cf..519f785b 100644 --- a/libsolidity/CompilerStack.cpp +++ b/libsolidity/CompilerStack.cpp @@ -107,7 +107,7 @@ bool CompilerStack::parse() resolveImports(); m_globalContext = make_shared(); - NameAndTypeResolver resolver(m_globalContext->declarations()); + NameAndTypeResolver resolver(m_globalContext->declarations(), m_errors); for (Source const* source: m_sourceOrder) resolver.registerDeclarations(*source->ast); for (Source const* source: m_sourceOrder) @@ -345,7 +345,7 @@ void CompilerStack::resolveImports() string const& id = import->identifier(); if (!m_sources.count(id)) BOOST_THROW_EXCEPTION( - ParserError() + Error(Error::Type::ParserError) << errinfo_sourceLocation(import->location()) << errinfo_comment("Source not found.") ); -- cgit