changeset 20144:c21a1d91f78d v8.2.0627

patch 8.2.0627: Vim9: error message does not work Commit: https://github.com/vim/vim/commit/b8ce6b0005573139fd101dc703ed30360940401b Author: Bram Moolenaar <Bram@vim.org> Date: Thu Apr 23 22:23:14 2020 +0200 patch 8.2.0627: Vim9: error message does not work Problem: Vim9: error message does not work. (Yegappan Lakshmanan) Solution: Swap lines.
author Bram Moolenaar <Bram@vim.org>
date Thu, 23 Apr 2020 22:30:04 +0200
parents 07c83d9d2f2a
children d02d050f61f5
files src/userfunc.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/userfunc.c
+++ b/src/userfunc.c
@@ -2614,8 +2614,8 @@ ex_function(exarg_T *eap)
 	    }
 	    else
 	    {
+		semsg(_("E1056: expected a type: %s"), ret_type);
 		ret_type = NULL;
-		semsg(_("E1056: expected a type: %s"), ret_type);
 	    }
 	}
     }
--- a/src/version.c
+++ b/src/version.c
@@ -747,6 +747,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    627,
+/**/
     626,
 /**/
     625,