comparison src/if_python.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
688 return OK; 688 return OK;
689 hinstPython = load_dll(libname); 689 hinstPython = load_dll(libname);
690 if (!hinstPython) 690 if (!hinstPython)
691 { 691 {
692 if (verbose) 692 if (verbose)
693 semsg(_(e_loadlib), libname, load_dll_error()); 693 semsg(_(e_could_not_load_library_str_str), libname, load_dll_error());
694 return FAIL; 694 return FAIL;
695 } 695 }
696 696
697 for (i = 0; python_funcname_table[i].ptr; ++i) 697 for (i = 0; python_funcname_table[i].ptr; ++i)
698 { 698 {
700 python_funcname_table[i].name)) == NULL) 700 python_funcname_table[i].name)) == NULL)
701 { 701 {
702 close_dll(hinstPython); 702 close_dll(hinstPython);
703 hinstPython = 0; 703 hinstPython = 0;
704 if (verbose) 704 if (verbose)
705 semsg(_(e_loadfunc), python_funcname_table[i].name); 705 semsg(_(e_could_not_load_library_function_str), python_funcname_table[i].name);
706 return FAIL; 706 return FAIL;
707 } 707 }
708 } 708 }
709 709
710 // Load unicode functions separately as only the ucs2 or the ucs4 functions 710 // Load unicode functions separately as only the ucs2 or the ucs4 functions
717 if (*ucs_as_encoded_string == NULL) 717 if (*ucs_as_encoded_string == NULL)
718 { 718 {
719 close_dll(hinstPython); 719 close_dll(hinstPython);
720 hinstPython = 0; 720 hinstPython = 0;
721 if (verbose) 721 if (verbose)
722 semsg(_(e_loadfunc), "PyUnicode_UCSX_*"); 722 semsg(_(e_could_not_load_library_function_str), "PyUnicode_UCSX_*");
723 return FAIL; 723 return FAIL;
724 } 724 }
725 725
726 return OK; 726 return OK;
727 } 727 }