Skip to content

Commit 950b753

Browse files
committed
Change exit to throw
1 parent 9eabeef commit 950b753

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,14 +213,14 @@ jobs:
213213
run: |
214214
Write-Host "matrix.dc = $env:DC_NAME"
215215
dub --version 2>$null
216-
if ($LASTEXITCODE -ne 0) { "dub not found"; exit 1 }
216+
if ($LASTEXITCODE -ne 0) { throw "dub not found" }
217217
218218
if ($env:DC_NAME -like "dmd*") {
219219
dmd --version 2>$null
220-
if ($LASTEXITCODE -ne 0) { "dmd not found"; exit 1 }
220+
if ($LASTEXITCODE -ne 0) { throw "dmd not found" }
221221
} elseif ($env:DC_NAME -like "ldc*") {
222222
ldc2 --version 2>$null
223-
if ($LASTEXITCODE -ne 0) { "dmd not found"; exit 1 }
223+
if ($LASTEXITCODE -ne 0) { throw "ldc2 not found" }
224224
} else {
225225
throw "Unknown compiler in matrix.dc: '$env:DC_NAME' (expected prefix 'dmd' or 'ldc')"
226226
}

0 commit comments

Comments
 (0)