patch 8.2.3972: error messages are spread out
Problem: Error messages are spread out.
Solution: Move the last errors from globals.h to errors.h.
diff --git a/src/evalvars.c b/src/evalvars.c
index a54158f..fba668d 100644
--- a/src/evalvars.c
+++ b/src/evalvars.c
@@ -1889,7 +1889,7 @@
*name_end = NUL;
if (*lp->ll_name == '$')
{
- semsg(_(e_lock_unlock), lp->ll_name);
+ semsg(_(e_cannot_lock_or_unlock_variable_str), lp->ll_name);
ret = FAIL;
}
else
@@ -1909,7 +1909,7 @@
{
// For historic reasons this error is not given for a list or
// dict. E.g., the b: dict could be locked/unlocked.
- semsg(_(e_lock_unlock), lp->ll_name);
+ semsg(_(e_cannot_lock_or_unlock_variable_str), lp->ll_name);
ret = FAIL;
}
else