Welcome to little lamb

Code » anopa » commit 8e5d60d

status: Fix possible missing extra msg

author Olivier Brunel
2015-07-16 17:10:34 UTC
committer Olivier Brunel
2015-07-16 17:28:15 UTC
parent 189f164b9b652bab4b05c07f89b88e929af3cb3d

status: Fix possible missing extra msg

E.g. dependency name in case of dependency failed error.

src/anopa/aa-status.c +6 -0

diff --git a/src/anopa/aa-status.c b/src/anopa/aa-status.c
index 42c9f78..4b60a4a 100644
--- a/src/anopa/aa-status.c
+++ b/src/anopa/aa-status.c
@@ -383,6 +383,12 @@ status_service (struct serv *serv, struct config *cfg)
                 aa_is_noflush (AA_OUT, ANSI_HIGHLIGHT_OFF);
                 put_s (": ");
                 put_s (errmsg[s->st.code]);
+                msg = aa_service_status_get_msg (&s->st);
+                if (msg && *msg)
+                {
+                    put_s (": ");
+                    put_s (msg);
+                }
                 break;
 
             case AA_EVT_STARTING: