Mercurial > vim
comparison src/if_ruby.c @ 26877:06a137af96f8 v8.2.3967
patch 8.2.3967: error messages are spread out
Commit: https://github.com/vim/vim/commit/460ae5dfca31fa627531c263184849976755cf6b
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 1 14:19:49 2022 +0000
patch 8.2.3967: error messages are spread out
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 01 Jan 2022 15:30:05 +0100 |
parents | fccd67ae58c8 |
children | d02d40f0261c |
comparison
equal
deleted
inserted
replaced
26876:601a973ac16c | 26877:06a137af96f8 |
---|---|
843 return OK; | 843 return OK; |
844 hinstRuby = load_dll(libname); | 844 hinstRuby = load_dll(libname); |
845 if (!hinstRuby) | 845 if (!hinstRuby) |
846 { | 846 { |
847 if (verbose) | 847 if (verbose) |
848 semsg(_(e_loadlib), libname, load_dll_error()); | 848 semsg(_(e_could_not_load_library_str_str), libname, load_dll_error()); |
849 return FAIL; | 849 return FAIL; |
850 } | 850 } |
851 | 851 |
852 for (i = 0; ruby_funcname_table[i].ptr; ++i) | 852 for (i = 0; ruby_funcname_table[i].ptr; ++i) |
853 { | 853 { |
855 ruby_funcname_table[i].name))) | 855 ruby_funcname_table[i].name))) |
856 { | 856 { |
857 close_dll(hinstRuby); | 857 close_dll(hinstRuby); |
858 hinstRuby = NULL; | 858 hinstRuby = NULL; |
859 if (verbose) | 859 if (verbose) |
860 semsg(_(e_loadfunc), ruby_funcname_table[i].name); | 860 semsg(_(e_could_not_load_library_function_str), ruby_funcname_table[i].name); |
861 return FAIL; | 861 return FAIL; |
862 } | 862 } |
863 } | 863 } |
864 return OK; | 864 return OK; |
865 } | 865 } |