Improve error message when a full_text property is missing

This commit is contained in:
Ingo Bürk 2014-12-03 20:11:05 +01:00 committed by Michael Stapelberg
parent bf1d0c9335
commit bfd60ec619
1 changed files with 1 additions and 1 deletions

View File

@ -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),
* i3bar doesnt crash and the user gets an annoying message. */
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)
ctx->has_urgent = true;
TAILQ_INSERT_TAIL(&statusline_head, new_block, blocks);