Mention the actual missing path in exception output when SourceRootTranslator constructor fails. (#990)

Mention the actual missing path in exception output when SourceRootTranslator constructor fails.
This commit is contained in:
Markus Schaber
2020-11-12 16:25:03 +01:00
committed by GitHub
parent fdca653b06
commit 3fe2d90ddf
@@ -38,7 +38,7 @@ namespace Coverlet.Core.Helpers
}
if (!_fileSystem.Exists(moduleTestPath))
{
throw new FileNotFoundException("Module test path not found", moduleTestPath);
throw new FileNotFoundException($"Module test path '{moduleTestPath}' not found", moduleTestPath);
}
_sourceRootMapping = LoadSourceRootMapping(Path.GetDirectoryName(moduleTestPath));
}