Skip to content

Commit

Permalink
Merge pull request #4867 from FabienTschanz/fix/empty-report-configur…
Browse files Browse the repository at this point in the history
…ation

Do not throw if configuration is empty during report generation
  • Loading branch information
NikCharlebois committed Jul 16, 2024
2 parents 0e603d8 + 2f51688 commit 06f729c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Change log for Microsoft365DSC

# UNRELEASED

* M365DSCReport
* Changes behaviour to not throw on empty configuration during report generation.
FIXES [#4559](https://github.com/microsoft/Microsoft365DSC/issues/4559)
FIXES [#4505](https://github.com/microsoft/Microsoft365DSC/issues/4505)

# 1.24.710.3

* MISC
Expand Down
2 changes: 1 addition & 1 deletion Modules/Microsoft365DSC/Modules/M365DSCReport.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ function New-M365DSCReportFromConfiguration
}
else
{
throw "Parsed content was null."
Write-Warning -Message "Parsed content was null. No report was generated."
}
}

Expand Down

0 comments on commit 06f729c

Please sign in to comment.