CompilerStack: Improve exception when accessing source file that's not available.

This commit is contained in:
Christian Parpart 2021-03-24 12:50:48 +01:00
parent 2b314c87f0
commit 5a5a9443a8

View File

@ -1447,7 +1447,7 @@ CompilerStack::Source const& CompilerStack::source(string const& _sourceName) co
{
auto it = m_sources.find(_sourceName);
if (it == m_sources.end())
solThrow(CompilerError, "Given source file not found.");
solThrow(CompilerError, "Given source file not found: " + _sourceName);
return it->second;
}