Mercurial > vim
comparison src/blob.c @ 26439:b18f3b0f317c v8.2.3750
patch 8.2.3750: error messages are everywhere
Commit: https://github.com/vim/vim/commit/40bcec1bac34d34a3d4d7c5f6b2cc1f163acbd00
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Dec 5 22:19:27 2021 +0000
patch 8.2.3750: 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:30:05 +0100 |
parents | 43d196ca5e7a |
children | a3f38923c037 |
comparison
equal
deleted
inserted
replaced
26438:c725b8e17f1f | 26439:b18f3b0f317c |
---|---|
207 write_blob(FILE *fd, blob_T *blob) | 207 write_blob(FILE *fd, blob_T *blob) |
208 { | 208 { |
209 if (fwrite(blob->bv_ga.ga_data, 1, blob->bv_ga.ga_len, fd) | 209 if (fwrite(blob->bv_ga.ga_data, 1, blob->bv_ga.ga_len, fd) |
210 < (size_t)blob->bv_ga.ga_len) | 210 < (size_t)blob->bv_ga.ga_len) |
211 { | 211 { |
212 emsg(_(e_write)); | 212 emsg(_(e_error_while_writing)); |
213 return FAIL; | 213 return FAIL; |
214 } | 214 } |
215 return OK; | 215 return OK; |
216 } | 216 } |
217 | 217 |