Skip to content

Commit d3c1de1

Browse files
committed
More error throwing
1 parent 1a298a0 commit d3c1de1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

eng/scripts/Language-Settings.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,9 @@ function Get-rust-PackageInfoFromPackageFile([IO.FileInfo]$pkg, [string]$working
151151

152152
Write-Host "Reading package info from $cargoTomlPath"
153153
if (!(Test-Path $cargoTomlPath)) {
154-
LogError "The Cargo.toml file was not found in the package artifact at $cargoTomlPath"
155-
throw "error"
154+
$message = "The Cargo.toml file was not found in the package artifact at $cargoTomlPath"
155+
LogError $message
156+
throw $message
156157
}
157158

158159
$package = cargo read-manifest --manifest-path $cargoTomlPath | ConvertFrom-Json

0 commit comments

Comments
 (0)