The flash scope is used to 'flash' a message to the next request. This is used mostly when you are redirecting to another page. The most common use case is the redirect at the end of a form post.
The first part of the documentation states this:
If you have to keep data across multiple HTTP requests, you can save them in the Session or Flash scopes. Data stored in the Session are available during the whole user Session, and data stored in the Flash scope are available to the next request only.
In your case you could simply pass the message directly to the view as you have message available at the time you render the view.