diff --git a/src/files.c b/src/files.c index 8e7a3eec5225bcbe8ff5de43f5baa3155d0ceac5..573578fdbd79605479943c076ad16e771ae69bfc 100644 --- a/src/files.c +++ b/src/files.c @@ -3013,7 +3013,7 @@ void save_history(void) h->data = charealloc(h->data, strlen(h->data) + 2); strcat(h->data, "\n"); if (fputs(h->data, hist) == EOF) { - rcfile_error(N_("Unable to write ~/.nano_history file: %s\n"), strerror(errno)); + rcfile_error(N_("Error writing %s: %s"), nanohist, strerror(errno)); goto come_from; } } diff --git a/src/nano.c b/src/nano.c index 0fb0e5f250f242bc3636fec94e5e63be1671ad5e..2b0079b61a4bd5280d05890e082abaf1d633e482 100644 --- a/src/nano.c +++ b/src/nano.c @@ -1837,7 +1837,7 @@ void do_spell(void) i = write_file(temp, TRUE, FALSE, FALSE); if (i == -1) { - statusbar(_("Unable to write temp file: %s"), strerror(errno)); + statusbar(_("Error writing temp file: %s"), strerror(errno)); free(temp); return; }