Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b2af8ab2 authored by Adrian Roos's avatar Adrian Roos
Browse files

ProtoLog: Fix message about stale proto log configuration

Renders an easy to see error message with the instructions to proceed.

Test: add a new ProtoLog.e() invocation, then run make
Change-Id: Ie4f9caf686a63b4ad278f92fa32e99a5de0ed3b1
parent 33081bc1
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -49,9 +49,11 @@ genrule {
    ],
    cmd: "cp $(location :generate-protolog.json) $(out) && " +
      "{ diff $(out) $(location :services.core.protolog.json) >/dev/null 2>&1 || " +
      "{ echo -e '##### ProtoLog viewer config is stale. ### \nRun: \n " +
      "cp $(location :generate-protolog.json) " +
      "$(location :services.core.protolog.json)\n' >&2 && false; } }",
      "{ echo -e '\\n\\n################################################################\\n#\\n" +
      "#  ERROR: ProtoLog viewer config is stale.  To update it, run:\\n#\\n" +
      "#  cp $(location :generate-protolog.json) " +
      "$(location :services.core.protolog.json)\\n#\\n" +
      "################################################################\\n\\n' >&2 && false; } }",
    out: ["services.core.protolog.json"],
}