Skip to content

Commit

Permalink
Review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ykuijs committed Jun 2, 2020
1 parent e853ad1 commit 94471e3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ function Set-TargetResource
15
{
<# Exception: One of the SP2016/SP2019 specific parameter was passed with SP2013 #>
Write-Verbose "SharePoint 2013 is used"
Write-Verbose -Message "SharePoint 2013 is used"
if ($PSBoundParameters.ContainsKey("SuiteNavBrandingLogoNavigationUrl") `
-or $PSBoundParameters.ContainsKey("SuiteNavBrandingLogoTitle") `
-or $PSBoundParameters.ContainsKey("SuiteNavBrandingLogoUrl") `
Expand All @@ -157,11 +157,11 @@ function Set-TargetResource
{
if ($installedVersion.ProductBuildPart.ToString().Length -eq 4)
{
Write-Verbose "SharePoint 2016 is used"
Write-Verbose -Message "SharePoint 2016 is used"
if ($PSBoundParameters.ContainsKey("SuiteBarBrandingElementHtml"))
{
Write-Verbose ("SuiteBarBrandingElementHtml with SharePoint 2016 only works " + `
"if using a SharePoint 2013 masterpage")
Write-Verbose -Message ("SuiteBarBrandingElementHtml with SharePoint 2016 only " + `
"works if using a SharePoint 2013 masterpage")
}

<# Exception: All the optional parameters are null for SP2016. #>
Expand All @@ -178,7 +178,7 @@ function Set-TargetResource
}
else
{
Write-Verbose "SharePoint 2019 is used"
Write-Verbose -Message "SharePoint 2019 is used"
throw "Changing the Suite Bar is not possible in SharePoint 2019"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ function Add-SPDscEvent
$sourceLogName = [System.Diagnostics.EventLog]::LogNameFromSourceName($Source, ".")
if ($LogName -ne $sourceLogName)
{
Write-Output "[ERROR] Specified source {$Source} already exists on log {$sourceLogName}"
exit
Write-Verbose -Message "[ERROR] Specified source {$Source} already exists on log {$sourceLogName}"
return
}
}
else
Expand Down

0 comments on commit 94471e3

Please sign in to comment.