Mercurial > vim
comparison src/if_python3.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 | fc859aea8cec |
children | d02d40f0261c |
comparison
equal
deleted
inserted
replaced
26876:601a973ac16c | 26877:06a137af96f8 |
---|---|
795 # endif | 795 # endif |
796 | 796 |
797 if (!hinstPy3) | 797 if (!hinstPy3) |
798 { | 798 { |
799 if (verbose) | 799 if (verbose) |
800 semsg(_(e_loadlib), libname, load_dll_error()); | 800 semsg(_(e_could_not_load_library_str_str), libname, load_dll_error()); |
801 return FAIL; | 801 return FAIL; |
802 } | 802 } |
803 | 803 |
804 for (i = 0; py3_funcname_table[i].ptr; ++i) | 804 for (i = 0; py3_funcname_table[i].ptr; ++i) |
805 { | 805 { |
807 py3_funcname_table[i].name)) == NULL) | 807 py3_funcname_table[i].name)) == NULL) |
808 { | 808 { |
809 close_dll(hinstPy3); | 809 close_dll(hinstPy3); |
810 hinstPy3 = 0; | 810 hinstPy3 = 0; |
811 if (verbose) | 811 if (verbose) |
812 semsg(_(e_loadfunc), py3_funcname_table[i].name); | 812 semsg(_(e_could_not_load_library_function_str), py3_funcname_table[i].name); |
813 return FAIL; | 813 return FAIL; |
814 } | 814 } |
815 } | 815 } |
816 | 816 |
817 // Load unicode functions separately as only the ucs2 or the ucs4 functions | 817 // Load unicode functions separately as only the ucs2 or the ucs4 functions |
842 || *ucs_as_encoded_string == NULL) | 842 || *ucs_as_encoded_string == NULL) |
843 { | 843 { |
844 close_dll(hinstPy3); | 844 close_dll(hinstPy3); |
845 hinstPy3 = 0; | 845 hinstPy3 = 0; |
846 if (verbose) | 846 if (verbose) |
847 semsg(_(e_loadfunc), "PyUnicode_UCSX_*"); | 847 semsg(_(e_could_not_load_library_function_str), "PyUnicode_UCSX_*"); |
848 return FAIL; | 848 return FAIL; |
849 } | 849 } |
850 | 850 |
851 return OK; | 851 return OK; |
852 } | 852 } |