mirror of
https://github.com/neovim/neovim.git
synced 2025-09-17 16:58:17 +00:00
shada: Translate errors and add error codes
Notes: - E136 code greatly changed its meaning: now it is write error and not read error. - E195 was removed because shada_read_everything will already do all the necessary error reporting. - E886 can be reported by both :rshada and :wshada, but :rshada comes first and AFAIR it is the only error which is not E575 and can be reported by :rshada.
This commit is contained in:
@@ -9150,8 +9150,7 @@ static void ex_shada(exarg_T *eap)
|
||||
if (*p_shada == NUL)
|
||||
p_shada = (char_u *)"'100";
|
||||
if (eap->cmdidx == CMD_rviminfo || eap->cmdidx == CMD_rshada) {
|
||||
if (shada_read_everything((char *) eap->arg, eap->forceit) == FAIL)
|
||||
EMSG(_("E195: Cannot open ShaDa file for reading"));
|
||||
(void) shada_read_everything((char *) eap->arg, eap->forceit, false);
|
||||
} else {
|
||||
shada_write_file((char *) eap->arg, eap->forceit);
|
||||
}
|
||||
|
Reference in New Issue
Block a user