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:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user