Revert "Unwrap multiple errors"

This reverts commit 0a59189d27.
This commit is contained in:
andig 2025-08-02 12:39:14 +02:00
parent 0a59189d27
commit 3911dfb303

View file

@ -357,12 +357,7 @@ func runRoot(cmd *cobra.Command, args []string) {
if err != nil {
// improve error message
err = wrapFatalError(err)
if uw, ok := err.(interface{ Unwrap() []error }); ok {
valueChan <- util.Param{Key: keys.Fatal, Val: uw.Unwrap()}
} else {
valueChan <- util.Param{Key: keys.Fatal, Val: err}
}
valueChan <- util.Param{Key: keys.Fatal, Val: err}
// TODO stop reboot loop if user updates config (or show countdown in UI)
log.FATAL.Println(err)