Skip to content

Commit fa2979c

Browse files
committed
Update File System.ps1
- Fixed issue with reserved variable name being used for error message
1 parent 7fff0e2 commit fa2979c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

File System.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1162,9 +1162,9 @@ function GetItemsWithDepth {
11621162
}
11631163
$_
11641164
} } catch {
1165-
$error = "Failed to access contents of: [$($CurrentPath)] - $_"
1166-
Log error $error
1167-
throw $error
1165+
$errorMsg = "Failed to access contents of: [$($CurrentPath)] - $($_)"
1166+
Log error $errorMsg
1167+
throw $errorMsg
11681168
}
11691169

11701170
# Output the items from the current directory

0 commit comments

Comments
 (0)