---
title: "Discussion on \"Catch and Store Error Messages in PowerShell\" | Hashnode"
description: "Discussion on \"Catch and Store Error Messages in PowerShell\". When you are in a flow, nothing is worse than having to stop to deal with a console error message. It would be great if the errors could be handled by the script and packaged into helpful messages. Happily, PowerShell offers this capability to catch,..."
url: "https://hashnode.com/posts/catch-and-store-error-messages-in-powershell/645bbd90227a37d0e22a4541"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Catch and Store Error Messages in PowerShell](https://johneverettcase.com/catch-and-store-error-messages-in-powershell?utm_source=hashnode&utm_medium=feed)

When you are in a flow, nothing is worse than having to stop to deal with a console error message. It would be great if the errors could be handled by the script and packaged into helpful messages. Happily, PowerShell offers this capability to catch,...

May 10, 2023 · 2 min read · johneverettcase.com  
Updated May 11, 2023  
Read the article

-   [#powershell](https://hashnode.com/tag/powershell)
-   [#try-and-catch](https://hashnode.com/tag/try-and-catch)

## Written by

[John Everett Case](https://hashnode.com/@johneverettcase)

@johneverettcase · Nebraska, US

  
[View profile](https://hashnode.com/@johneverettcase)

Developer, Writer

I am a developer from Nebraska in the US.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
