Terminating Error
noun
say it: “TER-mih-nay-ting AIR-er” /ˈtɜrməˌneɪtɪŋ ˈɛrər/
An error that stops a command completely, so it does none of its work.
What is a terminating error in PowerShell?
A terminating error stops the whole command, like a delivery truck that won't start. A misspelled parameter causes one. -ErrorAction Stop turns any command's error into one, and only these reach catch.
Copy-Item inbox\*.pdf -Destinaton backup-drive
# Copy-Item: A parameter cannot be found that matches parameter name 'Destinaton'.
In a sentence
- “Sam added -ErrorAction Stop so a failed copy became a terminating error that catch could see.”
- “Misspelling -Destination caused a terminating error, and Copy-Item copied nothing.”
Level: Journeyman · More PowerShell terms at this level
Updated