Skip to content

Commit 7f0bb98

Browse files
authored
Merge pull request #140 from KirtiWandhare/patch-15
Use Join-Path and correct exception message for linux usecase
2 parents 103cb95 + 7a97591 commit 7f0bb98

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

CanaryValidator/Canary.Tests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ while ($runCount -le $NumberOfIterations)
131131
# Start Canary
132132
#
133133
$CanaryLogFileName = [IO.Path]::GetFileNameWithoutExtension($tmpLogname) + "-$runCount" + [IO.Path]::GetExtension($tmpLogname)
134-
$CanaryLogFile = $CanaryLogPath + "\$CanaryLogFileName"
134+
$CanaryLogFile = Join-Path -Path $CanaryLogPath -ChildPath $CanaryLogFileName
135135

136136
Start-Scenario -Name 'Canary' -Type 'Basic' -LogFilename $CanaryLogFile -ContinueOnFailure $ContinueOnFailure
137137

@@ -205,7 +205,7 @@ while ($runCount -le $NumberOfIterations)
205205
catch
206206
{
207207
Remove-Item -Path $CanaryCustomImageFolder -Force -Recurse
208-
throw [System.Exception]"Failed to upload the linux image to PIR. `n$_.Exception.Message"
208+
throw [System.Exception]"Failed to upload the linux image to PIR. `n$($_.Exception.Message)"
209209
}
210210
}
211211

0 commit comments

Comments
 (0)