Skip to content

Commit 71bff59

Browse files
mattis-swannetMattis Swannet
andauthored
Improved error handling + fix for when only 1 atomic is found (#218)
Co-authored-by: Mattis Swannet <mattis.swannet@nynox.eu>
1 parent ad1356a commit 71bff59

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Public/Invoke-RunnerScheduleMethods.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ function Get-NewSchedule() {
4646
Write-Verbose "Private Atomics Folder not Found $($artConfig.PathToPrivateAtomicsFolder)"
4747
}
4848
$AllAtomicTests = New-Object System.Collections.ArrayList
49-
try { $AllAtomicTests.AddRange($publicAtomics) }catch {}
50-
try { $AllAtomicTests.AddRange($privateAtomics) }catch {}
49+
try { $AllAtomicTests.AddRange(@($publicAtomics)) } catch { Write-Error $_ }
50+
try { $AllAtomicTests.AddRange(@($privateAtomics)) } catch { Write-Error $_ }
5151
return $AllAtomicTests
5252
}
5353

0 commit comments

Comments
 (0)