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

This commit is contained in:
Christian Parpart
2021-11-24 13:37:11 +01:00
parent 2b314c87f0
commit 5a5a9443a8
+1 -1
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;
}