aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2018-07-27 00:26:30 -0700
committerRob Mensching <rob@firegiant.com>2018-07-27 00:26:30 -0700
commitf2ead15c8bbaf6ce777d7026cd8422df3628dd19 (patch)
tree4379bc223456f9f430e7ce23e15bae4eee85ed3e /src
parentdb6dd40daf44e0f06a9ff5f78ea9601138024583 (diff)
downloadwix-f2ead15c8bbaf6ce777d7026cd8422df3628dd19.tar.gz
wix-f2ead15c8bbaf6ce777d7026cd8422df3628dd19.tar.bz2
wix-f2ead15c8bbaf6ce777d7026cd8422df3628dd19.zip
Support displaying paths checked when file not found
Diffstat (limited to 'src')
-rw-r--r--src/WixToolset.Data/ErrorMessages.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/WixToolset.Data/ErrorMessages.cs b/src/WixToolset.Data/ErrorMessages.cs
index 81f67c81..a50615f3 100644
--- a/src/WixToolset.Data/ErrorMessages.cs
+++ b/src/WixToolset.Data/ErrorMessages.cs
@@ -3,6 +3,8 @@
3namespace WixToolset.Data 3namespace WixToolset.Data
4{ 4{
5 using System; 5 using System;
6 using System.Collections;
7 using System.Collections.Generic;
6 using System.Resources; 8 using System.Resources;
7 9
8 public static class ErrorMessages 10 public static class ErrorMessages
@@ -647,6 +649,12 @@ namespace WixToolset.Data
647 return Message(sourceLineNumbers, Ids.FileNotFound, "The system cannot find the file '{0}' with type '{1}'.", file, fileType); 649 return Message(sourceLineNumbers, Ids.FileNotFound, "The system cannot find the file '{0}' with type '{1}'.", file, fileType);
648 } 650 }
649 651
652 public static Message FileNotFound(SourceLineNumber sourceLineNumbers, string file, string fileType, IEnumerable<string> checkedPaths)
653 {
654 var combinedCheckedPaths = String.Join(", ", checkedPaths);
655 return Message(sourceLineNumbers, Ids.FileNotFound, "The system cannot find the file '{0}' with type '{1}'. The following paths were checked: {2}", file, fileType, combinedCheckedPaths);
656 }
657
650 public static Message FileOrDirectoryPathRequired(string parameter) 658 public static Message FileOrDirectoryPathRequired(string parameter)
651 { 659 {
652 return Message(null, Ids.FileOrDirectoryPathRequired, "The parameter '{0}' must be followed by a file or directory path. To specify a directory path the string must end with a backslash, for example: \"C:\\Path\\\".", parameter); 660 return Message(null, Ids.FileOrDirectoryPathRequired, "The parameter '{0}' must be followed by a file or directory path. To specify a directory path the string must end with a backslash, for example: \"C:\\Path\\\".", parameter);