PowerShell - Error Handling
Identify the error in this PowerShell error logging snippet:
try {
Get-Content 'C:\missing.txt'
} catch {
Write-Error "$(Get-Date): File missing"
Add-Content error.log "File missing"
}