Skip to content

Commit d0cc051

Browse files
#595 Update warning messages to be more informative
1 parent 312f02d commit d0cc051

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/SIM.Sitecore9Installer.Tests/Validation/Validators/PrerequisitesDownloadLinksValidatorTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ namespace SIM.Sitecore9Installer.Tests.Validation.Validators
1111
{
1212
public class PrerequisitesDownloadLinksValidatorTests
1313
{
14-
private const string KnownIssueMessage = "{0}: the '{1}' parameter contains the following invalid link that is not accessible:\n\n{2}\n\nThis behavior looks to be related to the following known issue:\n\n{3}\n\nPlease try to apply the solution mentioned there.";
14+
private const string KnownIssueMessage = "{0}: the '{1}' parameter contains the following link that is not accessible:\n\n{2}\n\nThis behavior looks to be related to the following known issue:\n\n{3}\n\nPlease try to apply the solution mentioned there.";
1515

16-
private const string InvalidLinkMessage = "{0}: the '{1}' parameter contains the following invalid link that is not accessible:\n\n{2}\n\nThis behavior may occur due to similar symptoms described in the following known issue:\n\n{3}";
16+
private const string InvalidLinkMessage = "{0}: the '{1}' parameter contains the following link that is not accessible:\n\n{2}\n\nPlease check the Internet connection and the link accessibility in a browser.\n\nThis behavior may also occur due to similar symptoms described in the following known issue:\n\n{3}";
1717

1818
private const string InvalidValueMessage = "{0}: the '{1}' parameter contains the following invalid value:\n\n{2}\n\nIt should contain download link that starts with '{3}'.";
1919

src/SIM.Sitecore9Installer/Validation/Validators/PrerequisitesDownloadLinksValidator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ protected override IEnumerable<ValidationResult> GetErrorsForTask(Task task, IEn
4444
if (installParam.Name == this.WebPlatformDownload)
4545
{
4646
yield return new ValidationResult(ValidatorState.Warning,
47-
$"{TaskName}: the '{installParam.Name}' parameter contains the following invalid link that is not accessible:\n\n{installParam.Value}\n\nThis behavior looks to be related to the following known issue:\n\n{KnownIssueLink}\n\nPlease try to apply the solution mentioned there.",
47+
$"{TaskName}: the '{installParam.Name}' parameter contains the following link that is not accessible:\n\n{installParam.Value}\n\nThis behavior looks to be related to the following known issue:\n\n{KnownIssueLink}\n\nPlease try to apply the solution mentioned there.",
4848
null);
4949
}
5050
else
5151
{
5252
yield return new ValidationResult(ValidatorState.Warning,
53-
$"{TaskName}: the '{installParam.Name}' parameter contains the following invalid link that is not accessible:\n\n{installParam.Value}\n\nThis behavior may occur due to similar symptoms described in the following known issue:\n\n{KnownIssueLink}",
53+
$"{TaskName}: the '{installParam.Name}' parameter contains the following link that is not accessible:\n\n{installParam.Value}\n\nPlease check the Internet connection and the link accessibility in a browser.\n\nThis behavior may also occur due to similar symptoms described in the following known issue:\n\n{KnownIssueLink}",
5454
null);
5555
}
5656
}

0 commit comments

Comments
 (0)