fx icon indicating copy to clipboard operation
fx copied to clipboard

It would be nice if an app could pass the causing error to Shutdowner

Open dcormier opened this issue 5 years ago • 2 comments

It would be nice if an error could optionally be passed to Shutdowner, and this could be retrieved from the App as the reason it stopped running. Users could then use that error to decide whether to exit the process with a non-zero status code, for example.

dcormier avatar Apr 08 '19 19:04 dcormier

Agree.

A simple ShutdownOption should do that. For example sd.Shutdown(fx.WithShutdownCause(err)).

What do you think?

hsblhsn avatar Sep 10 '22 10:09 hsblhsn

This is a reasonable feature request. I'll start tracking it in our backlog :) Thanks for the suggestion.

sywhang avatar Oct 12 '22 16:10 sywhang