mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 05:58:33 +00:00
feat(messages): cleanup Lua error messages
"Error" in error messages is redundant. Just provide the context, don't say "Error ...".
This commit is contained in:
@@ -341,8 +341,7 @@ int nlua_xdl_diff(lua_State *lstate)
|
||||
|
||||
if (xdl_diff(&ma, &mb, ¶ms, &cfg, &ecb) == -1) {
|
||||
if (!ERROR_SET(&err)) {
|
||||
api_set_error(&err, kErrorTypeException,
|
||||
"Error while performing diff operation");
|
||||
api_set_error(&err, kErrorTypeException, "diff operation failed");
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user