Skip to content

Commit e3eb524

Browse files
author
Staffan Gustafsson
committed
Simpler logic in error handler for Select-EverythingString
1 parent 70bcada commit e3eb524

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

PSEverything/PSEverything.psm1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,7 @@ begin
149149
$steppablePipeline.Begin($PSCmdlet)
150150
}
151151
catch [System.Management.Automation.ParameterBindingException]{
152-
if($_.FullyQualifiedErrorId -eq 'ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.SelectStringCommand' -and
153-
$_.Exception.ParameterName -eq 'LiteralPath')
152+
if($_.Exception.ParameterName -eq 'LiteralPath')
154153
{
155154
$PSCmdlet.WriteDebug("Search-Everything returned empty result set")
156155
}

0 commit comments

Comments
 (0)