updated for version 7.2-146
diff --git a/src/fileio.c b/src/fileio.c
index 0d0269b..eec68e8 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -6647,6 +6647,11 @@
tbuf = alloc((unsigned)(STRLEN(path) + STRLEN(mesg)
+ STRLEN(mesg2) + 2));
sprintf((char *)tbuf, mesg, path);
+#ifdef FEAT_EVAL
+ /* Set warningmsg here, before the unimportant and output-specific
+ * mesg2 has been appended. */
+ set_vim_var_string(VV_WARNINGMSG, tbuf, -1);
+#endif
#if defined(FEAT_CON_DIALOG) || defined(FEAT_GUI_DIALOG)
if (can_reload)
{