app info: show the reason of unit is failing
@@ -429,6 +429,7 @@ type unit struct {
ID string
IP string
Status string
+ StatusReason string
ProcessName string
Address *url.URL
Addresses []url.URL
@@ -460,6 +461,10 @@ func (u *unit) ReadyAndStatus() string {
return "ready"
}
+ if u.StatusReason != "" {
+ return u.Status + " (" + u.StatusReason + ")"
+ }
+
return u.Status
}
