Skip to content

Commit 3fe2d90

Browse files
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.
1 parent fdca653 commit 3fe2d90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/coverlet.core/Helpers/SourceRootTranslator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public SourceRootTranslator(string moduleTestPath, ILogger logger, IFileSystem f
3838
}
3939
if (!_fileSystem.Exists(moduleTestPath))
4040
{
41-
throw new FileNotFoundException("Module test path not found", moduleTestPath);
41+
throw new FileNotFoundException($"Module test path '{moduleTestPath}' not found", moduleTestPath);
4242
}
4343
_sourceRootMapping = LoadSourceRootMapping(Path.GetDirectoryName(moduleTestPath));
4444
}

0 commit comments

Comments
 (0)