From 3fe2d90ddf48eae1d778d84c8ae55d59ea670b88 Mon Sep 17 00:00:00 2001 From: Markus Schaber Date: Thu, 12 Nov 2020 16:25:03 +0100 Subject: [PATCH] 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. --- src/coverlet.core/Helpers/SourceRootTranslator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coverlet.core/Helpers/SourceRootTranslator.cs b/src/coverlet.core/Helpers/SourceRootTranslator.cs index 4822880..00aab27 100644 --- a/src/coverlet.core/Helpers/SourceRootTranslator.cs +++ b/src/coverlet.core/Helpers/SourceRootTranslator.cs @@ -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)); }