浏览代码

Improving some error messages

master
phillbush 4 年前
父节点
当前提交
70f5db0f88
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      xmenu.c

+ 2
- 2
xmenu.c 查看文件

@@ -514,7 +514,7 @@ buildmenutree(unsigned level, const char *label, const char *output, char *file)
menu = menu->parent, i++)
;
if (menu == NULL)
errx(1, "reached NULL menu");
errx(1, "improper indentation detected");

/* find last item in the new menu */
for (item = menu->list; item->next != NULL; item = item->next)
@@ -864,7 +864,7 @@ grabpointer(void)
return;
nanosleep(&ts, NULL);
}
errx(1, "could not grab keyboard");
errx(1, "could not grab pointer");
}

/* try to grab keyboard, we may have to wait for another process to ungrab */


正在加载...
取消
保存