fx
fx copied to clipboard
It would be nice if an app could pass the causing error to Shutdowner
trafficstars
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.
Agree.
A simple ShutdownOption should do that. For example sd.Shutdown(fx.WithShutdownCause(err)).
What do you think?
This is a reasonable feature request. I'll start tracking it in our backlog :) Thanks for the suggestion.