Improve error message when a full_text property is missing
This commit is contained in:
parent
bf1d0c9335
commit
bfd60ec619
|
@ -233,7 +233,7 @@ static int stdin_end_map(void *context) {
|
||||||
/* Ensure we have a full_text set, so that when it is missing (or null),
|
/* Ensure we have a full_text set, so that when it is missing (or null),
|
||||||
* i3bar doesn’t crash and the user gets an annoying message. */
|
* i3bar doesn’t crash and the user gets an annoying message. */
|
||||||
if (!new_block->full_text)
|
if (!new_block->full_text)
|
||||||
new_block->full_text = i3string_from_utf8("SPEC VIOLATION (null)");
|
new_block->full_text = i3string_from_utf8("SPEC VIOLATION: full_text is NULL!");
|
||||||
if (new_block->urgent)
|
if (new_block->urgent)
|
||||||
ctx->has_urgent = true;
|
ctx->has_urgent = true;
|
||||||
TAILQ_INSERT_TAIL(&statusline_head, new_block, blocks);
|
TAILQ_INSERT_TAIL(&statusline_head, new_block, blocks);
|
||||||
|
|
Loading…
Reference in New Issue