Permalink
Browse files

patch 8.0.0897: wrong error message for invalid term_finish value

Problem:    Wrong error message for invalid term_finish value
Solution:   Pass the right argument to emsg().
  • Loading branch information...
brammool committed Aug 11, 2017
1 parent dd693ce commit f1237f18143d9fe5b2a6ce981dee415736858789
Showing with 3 additions and 1 deletion.
  1. +1 −1 src/channel.c
  2. +2 −0 src/version.c
View
@@ -4426,7 +4426,7 @@ get_job_options(typval_T *tv, jobopt_T *opt, int supported)
val = get_tv_string(item);
if (STRCMP(val, "open") != 0 && STRCMP(val, "close") != 0)
{
EMSG2(_(e_invarg2), "drop");
EMSG2(_(e_invarg2), val);
return FAIL;
}
opt->jo_set2 |= JO2_TERM_FINISH;
View
@@ -769,6 +769,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
897,
/**/
896,
/**/

0 comments on commit f1237f1

Please sign in to comment.