mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
CompilerStack: Improve exception when accessing source file that's not available.
This commit is contained in:
parent
2b314c87f0
commit
5a5a9443a8
@ -1447,7 +1447,7 @@ CompilerStack::Source const& CompilerStack::source(string const& _sourceName) co
|
|||||||
{
|
{
|
||||||
auto it = m_sources.find(_sourceName);
|
auto it = m_sources.find(_sourceName);
|
||||||
if (it == m_sources.end())
|
if (it == m_sources.end())
|
||||||
solThrow(CompilerError, "Given source file not found.");
|
solThrow(CompilerError, "Given source file not found: " + _sourceName);
|
||||||
|
|
||||||
return it->second;
|
return it->second;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user