diff options
| author | Paul Eggert | 2022-10-13 09:33:46 -0700 |
|---|---|---|
| committer | Paul Eggert | 2022-10-13 09:34:13 -0700 |
| commit | 10f55975d34dd7299f72fdf8d93fd8cbe2e41e25 (patch) | |
| tree | dd3831ecea5211178cb796bc20e5b6b924b91587 | |
| parent | 6efc64395282a960000d6fd9ac2e33ab7c764478 (diff) | |
| download | emacs-10f55975d34dd7299f72fdf8d93fd8cbe2e41e25.tar.gz emacs-10f55975d34dd7299f72fdf8d93fd8cbe2e41e25.zip | |
Improve checks for recent "File exists" fixup
* src/fileio.c (Finsert_file_contents): Add an assertion (bug#42431).
| -rw-r--r-- | src/fileio.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fileio.c b/src/fileio.c index 49553f3c91f..b9a57dd5800 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -5003,6 +5003,7 @@ by calling `format-decode', which see. */) | |||
| 5003 | if (save_errno != 0) | 5003 | if (save_errno != 0) |
| 5004 | { | 5004 | { |
| 5005 | /* Signal an error if visiting a file that could not be opened. */ | 5005 | /* Signal an error if visiting a file that could not be opened. */ |
| 5006 | eassert (!NILP (visit) && NILP (handler)); | ||
| 5006 | report_file_errno ("Opening input file", orig_filename, save_errno); | 5007 | report_file_errno ("Opening input file", orig_filename, save_errno); |
| 5007 | } | 5008 | } |
| 5008 | 5009 | ||