diff src/userfunc.c @ 26966:ac75c145f0a9 v8.2.4012

patch 8.2.4012: error messages are spread out Commit: https://github.com/vim/vim/commit/d82a47dd0493ee976aa3f15ecdc9aea7da6ad5bf Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jan 5 20:24:39 2022 +0000 patch 8.2.4012: error messages are spread out Problem: Error messages are spread out. Solution: Move the last error messages to errors.h.
author Bram Moolenaar <Bram@vim.org>
date Wed, 05 Jan 2022 21:30:04 +0100
parents 85866e069c24
children 8796f1384750
line wrap: on
line diff
--- a/src/userfunc.c
+++ b/src/userfunc.c
@@ -339,7 +339,7 @@ get_function_args(
 	    }
 	    else if (any_default)
 	    {
-		emsg(_("E989: Non-default argument follows default argument"));
+		emsg(_(e_non_default_argument_follows_default_argument));
 		goto err_ret;
 	    }
 
@@ -3850,7 +3850,7 @@ trans_function_name(
 
 	if (cp != NULL && cp < end)
 	{
-	    semsg(_("E884: Function name cannot contain a colon: %s"), start);
+	    semsg(_(e_function_name_cannot_contain_colon_str), start);
 	    goto theend;
 	}
     }