fileio: Save details about E212 error

This commit is contained in:
ZyX
2017-04-03 03:02:17 +03:00
parent 97a7f4745d
commit 2dbd49f73c

View File

@@ -3192,7 +3192,7 @@ nobackup:
SET_ERRMSG(_("E166: Can't open linked file for writing"));
} else {
#endif
SET_ERRMSG(_("E212: Can't open file for writing"));
SET_ERRMSG_ARG(_("E212: Can't open file for writing: %s"), fd);
if (forceit && vim_strchr(p_cpo, CPO_FWRITE) == NULL
&& perm >= 0) {
#ifdef UNIX