AndHowCore.printFailedStartupDetails needs to be moved
- Dominant language
- Java
- Stars
- 25
- Forks
- 34
- PR merge metrics
- No merged PRs in 30d
Description
Move the method:
`org.yarnandtail.andhow.internal.AndHowCore.printFailedStartupDetails(AppFatalException)`
to the `org.yarnandtail.andhow.util.AndHowUtil` class as a public static method.
For flexibility during testing (and to make testing easier), this method (or an overloaded method) should accept an optional `PrintStream` to use instead of always using the `System.err` stream.
**Background**
`AndHowCore` is the wrong place for this method because:
* Its untestable because its in a very complicated class
* The `AndHow` class also needs to print failed startup details, but cannot because it cannot use this method
Moving this method out so that the AndHow class can use it as well would make a more consistent 'failed startup', with more detailed debug info for the user.
Contributor guide
Assessment
This issue has not been assessed yet.