PowerShell - Error Handling
Identify the error in this PowerShell script that prevents error handling from working:
try {
Get-Content 'missingfile.txt'
} catch {
Write-Output 'Error caught'
}