fix(excmd): nlua_call_excmd require() failure is a "lua_error"

Although `nlua_call_excmd` is semantically for implementing Ex-commands,
the `require()` should never fail, so that's a "Lua error".

But if the call itself fails (the later `semsg` call), that's an "Ex
cmd" error.
This commit is contained in:
Justin M. Keyes
2026-04-19 17:37:03 +02:00
parent 919a109951
commit a38451be40
5 changed files with 22 additions and 7 deletions

View File

@@ -48,7 +48,7 @@ local dup_allowed = {
E509 = 2,
E5101 = 2,
E5102 = 2,
E5108 = 6,
E5108 = 5,
E5111 = 2,
E513 = 2,
E521 = 2,