Skip to content

Commit

Permalink
Merge pull request #3233 from NikCharlebois/Error-Handling-for-Revers…
Browse files Browse the repository at this point in the history
…eDSC

Error handling for the Export-M365DSCConfiguration flow
  • Loading branch information
NikCharlebois authored Apr 27, 2023
2 parents dbc05b1 + 14a440c commit 110b209
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Change log for Microsoft365DSC

# UNRELEASED

* MISC
* If an error occurs during the export process, we now throw an error instead of simply writing the error
back to the host via Write-Host.

# 1.23.426.2

* DEPENDENCIES
Expand Down
2 changes: 1 addition & 1 deletion Modules/Microsoft365DSC/Modules/M365DSCReverse.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -832,9 +832,9 @@ function Start-M365DSCConfigurationExtract
}
catch
{
Write-Host $_
$partialPath = Join-Path $env:TEMP -ChildPath "$($Global:PartialExportFileName)"
Write-Host "Partial Export file was saved at: $partialPath"
throw $_
}
}

Expand Down

0 comments on commit 110b209

Please sign in to comment.