diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2015-11-14 09:04:41 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2015-11-14 09:04:41 +0000 |
commit | 23266e8e095fb590543d309ae3c8e30fcd98d6b7 (patch) | |
tree | 65f38f3ee718b80cd1ecb25c9b9d55a2bc901051 | |
parent | 31d880f751a65aa6bb5f0f12683cdb2c0cbbf5c0 (diff) | |
parent | 276ca5f04c8601a04cbaed3d65f56e3a25cea65f (diff) | |
download | rtmux-23266e8e095fb590543d309ae3c8e30fcd98d6b7.tar.gz rtmux-23266e8e095fb590543d309ae3c8e30fcd98d6b7.tar.bz2 rtmux-23266e8e095fb590543d309ae3c8e30fcd98d6b7.zip |
Merge branch 'master' of github.com:tmux/tmux
-rw-r--r-- | options.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -150,9 +150,9 @@ options_get_string(struct options *oo, const char *name) struct options_entry *o; if ((o = options_find(oo, name)) == NULL) - fatalx("missing option"); + log_fatalx("missing option %s", name); if (o->type != OPTIONS_STRING) - fatalx("option not a string"); + log_fatalx("option %s not a string", name); return (o->str); } @@ -180,9 +180,9 @@ options_get_number(struct options *oo, const char *name) struct options_entry *o; if ((o = options_find(oo, name)) == NULL) - fatalx("missing option"); + log_fatalx("missing option %s", name); if (o->type != OPTIONS_NUMBER) - fatalx("option not a number"); + log_fatalx("option %s not a number", name); return (o->num); } @@ -220,8 +220,8 @@ options_get_style(struct options *oo, const char *name) struct options_entry *o; if ((o = options_find(oo, name)) == NULL) - fatalx("missing option"); + log_fatalx("missing option %s", name); if (o->type != OPTIONS_STYLE) - fatalx("option not a style"); + log_fatalx("option %s not a style", name); return (&o->style); } |