Skip to content

Commit

Permalink
Bugfixes
Browse files Browse the repository at this point in the history
* Fixed Resolve-Error
Seems that switch parameter is not $true by default as specified in the powershell documentation
* Fixed Logging error
  • Loading branch information
Ioan Popovici committed Feb 2, 2018
1 parent b21a52a commit c844e01
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Internal/Function Write-Log.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Function Write-Log {
[string]$Source = '',
[Parameter(Mandatory=$false,Position=3)]
[ValidateNotNullorEmpty()]
[string]$ScriptSection = '',
[string]$ScriptSection = 'N/A',
[Parameter(Mandatory=$false,Position=4)]
[ValidateSet('CMTrace','Legacy')]
[string]$LogType = 'Legacy',
Expand Down
8 changes: 4 additions & 4 deletions Internal/Resolve-Error.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ Function Resolve-Error {
[ValidateNotNullorEmpty()]
[string[]]$Property = ('Message','InnerException','FullyQualifiedErrorId','ScriptStackTrace','PositionMessage'),
[Parameter(Mandatory=$false,Position=2)]
[switch]$GetErrorRecord,
[switch]$GetErrorRecord = $true,
[Parameter(Mandatory=$false,Position=3)]
[switch]$GetErrorInvocation,
[switch]$GetErrorInvocation = $true,
[Parameter(Mandatory=$false,Position=4)]
[switch]$GetErrorException,
[switch]$GetErrorException = $true,
[Parameter(Mandatory=$false,Position=5)]
[switch]$GetErrorInnerException
[switch]$GetErrorInnerException = $true
)

Begin {
Expand Down

0 comments on commit c844e01

Please sign in to comment.