Improve error message when a full_text property is missing
Patch status: needinfo
Patch by Ingo Bürk
To apply this patch, use:
curl http://cr.i3wm.org/patch/684/raw.patch | git am
b/i3bar/src/child.c
13 |
@@ -233,7 +233,7 @@ static int stdin_end_map(void *context) { |
14 |
/* Ensure we have a full_text set, so that when it is missing (or null), |
15 |
* i3bar doesn’t crash and the user gets an annoying message. */ |
16 |
if (!new_block->full_text) |
17 |
- new_block->full_text = i3string_from_utf8("SPEC VIOLATION (null)"); |
18 |
+ new_block->full_text = i3string_from_utf8("ERROR No full_text specified!"); |
19 |
if (new_block->urgent) |
20 |
ctx->has_urgent = true; |
21 |
TAILQ_INSERT_TAIL(&statusline_head, new_block, blocks); |