Mercurial > vim
comparison src/bufwrite.c @ 26436:ef0c07cbf53f v8.2.3749
patch 8.2.3749: error messages are everywhere
Commit: https://github.com/vim/vim/commit/12f3c1b77fb39dc338304d5484cdbc99da27389a
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Dec 5 21:46:34 2021 +0000
patch 8.2.3749: error messages are everywhere
Problem: Error messages are everywhere.
Solution: Move more error messages to errors.h and adjust the names.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 05 Dec 2021 23:00:06 +0100 |
parents | a2e6da79274d |
children | 2aeea8611342 |
comparison
equal
deleted
inserted
replaced
26435:8860c02d96a8 | 26436:ef0c07cbf53f |
---|---|
711 return FAIL; | 711 return FAIL; |
712 | 712 |
713 // Avoid a crash for a long name. | 713 // Avoid a crash for a long name. |
714 if (STRLEN(fname) >= MAXPATHL) | 714 if (STRLEN(fname) >= MAXPATHL) |
715 { | 715 { |
716 emsg(_(e_longname)); | 716 emsg(_(e_name_too_long)); |
717 return FAIL; | 717 return FAIL; |
718 } | 718 } |
719 | 719 |
720 // must init bw_conv_buf and bw_iconv_fd before jumping to "fail" | 720 // must init bw_conv_buf and bw_iconv_fd before jumping to "fail" |
721 write_info.bw_conv_buf = NULL; | 721 write_info.bw_conv_buf = NULL; |