summaryrefslogtreecommitdiff
path: root/src/userfunc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/userfunc.c')
-rw-r--r--src/userfunc.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/userfunc.c b/src/userfunc.c
index 2bdc2b1cd..fd2509011 100644
--- a/src/userfunc.c
+++ b/src/userfunc.c
@@ -1678,6 +1678,11 @@ call_func(
case ERROR_UNKNOWN:
emsg_funcname(N_("E117: Unknown function: %s"), name);
break;
+ case ERROR_NOTMETHOD:
+ emsg_funcname(
+ N_("E276: Cannot use function as a method: %s"),
+ name);
+ break;
case ERROR_DELETED:
emsg_funcname(N_("E933: Function was deleted: %s"), name);
break;
@@ -1685,15 +1690,18 @@ call_func(
emsg_funcname((char *)e_toomanyarg, name);
break;
case ERROR_TOOFEW:
- emsg_funcname(N_("E119: Not enough arguments for function: %s"),
+ emsg_funcname(
+ N_("E119: Not enough arguments for function: %s"),
name);
break;
case ERROR_SCRIPT:
- emsg_funcname(N_("E120: Using <SID> not in a script context: %s"),
+ emsg_funcname(
+ N_("E120: Using <SID> not in a script context: %s"),
name);
break;
case ERROR_DICT:
- emsg_funcname(N_("E725: Calling dict function without Dictionary: %s"),
+ emsg_funcname(
+ N_("E725: Calling dict function without Dictionary: %s"),
name);
break;
}