diff src/userfunc.c @ 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 fe8d0a4344df
children 63cc54100ae4
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);
 	    }
 	}
     }