File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,10 +15,12 @@ Context "Export-Mdb" {
1515 $folder = Get-MdbCamera | Get-MdbSequence - Type RecordingSequence | ForEach-Object {
1616 $path = ' TestDrive:\{0}_{1}_Database' -f $_.Source , $_.Start.ToString (' yyyy-MM-dd_HH-mm-ss' )
1717 $exportParams = @ {
18- Start = $_.Start
19- End = $_.End
20- Path = $path
18+ Start = $_.Start
19+ End = $_.End
20+ Path = $path
21+ ErrorAction = ' Stop'
2122 }
23+ Write-Host " Exporting to $path " - ForegroundColor Magenta
2224 $_ | Export-Mdb @exportParams
2325 }
2426 $folder | Should -Not - BeNullOrEmpty
Original file line number Diff line number Diff line change @@ -15,10 +15,12 @@ Context "Export-MdbMkv" {
1515 $mkvFile = Get-MdbCamera | Get-MdbSequence - Type RecordingSequence | ForEach-Object {
1616 $path = ' TestDrive:\{0}_{1}.mkv' -f $_.Source , $_.Start.ToString (' yyyy-MM-dd_HH-mm-ss' )
1717 $exportParams = @ {
18- Start = $_.Start
19- End = $_.End
20- Path = $path
18+ Start = $_.Start
19+ End = $_.End
20+ Path = $path
21+ ErrorAction = ' Stop'
2122 }
23+ Write-Host " Exporting to $path " - ForegroundColor Magenta
2224 $_ | Export-MdbMkv @exportParams
2325 }
2426 $mkvFile | Should -Not - BeNullOrEmpty
You can’t perform that action at this time.
0 commit comments