Report unexpected path conversions
This commit is contained in:
parent
be4c00e54a
commit
4f75ddbfea
1 changed files with 4 additions and 0 deletions
|
@ -39,6 +39,10 @@ $null = New-Module {
|
|||
|
||||
$result = Receive-Job -Wait $job;
|
||||
|
||||
if ((Split-Path -Leaf $Path) -ne (Split-Path -Leaf $result)) {
|
||||
Write-Error "The result of the path conversion of ``$Path`` was unexpacted: ``$result``";
|
||||
}
|
||||
|
||||
if ($job.State -ne ([System.Management.Automation.JobState]::Completed)) {
|
||||
Write-Error "An error occurred while converting ``$Path`` to a Linux path.`nOutput: ``$result``";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue