mirror of
https://github.com/neovim/neovim.git
synced 2025-10-16 23:06:14 +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:
@@ -593,7 +593,7 @@ static char *get_emsg_source(void)
|
||||
sname = SOURCING_NAME;
|
||||
}
|
||||
|
||||
const char *const p = _("Error detected while processing %s:");
|
||||
const char *const p = _("Error in %s:");
|
||||
const size_t buf_len = strlen(sname) + strlen(p) + 1;
|
||||
char *const buf = xmalloc(buf_len);
|
||||
snprintf(buf, buf_len, p, sname);
|
||||
|
Reference in New Issue
Block a user