comparison src/if_mzsch.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 65ab0b035dd8
children 85866e069c24
comparison
equal deleted inserted replaced
26876:601a973ac16c 26877:06a137af96f8
666 hMzGC = vimLoadLib(gc_dll); 666 hMzGC = vimLoadLib(gc_dll);
667 667
668 if (!hMzGC) 668 if (!hMzGC)
669 { 669 {
670 if (verbose) 670 if (verbose)
671 semsg(_(e_loadlib), gc_dll, GetWin32Error()); 671 semsg(_(e_could_not_load_library_str_str), gc_dll, GetWin32Error());
672 return FAIL; 672 return FAIL;
673 } 673 }
674 674
675 if (!hMzSch) 675 if (!hMzSch)
676 { 676 {
677 if (verbose) 677 if (verbose)
678 semsg(_(e_loadlib), sch_dll, GetWin32Error()); 678 semsg(_(e_could_not_load_library_str_str), sch_dll, GetWin32Error());
679 return FAIL; 679 return FAIL;
680 } 680 }
681 681
682 for (thunk = mzsch_imports; thunk->name; thunk++) 682 for (thunk = mzsch_imports; thunk->name; thunk++)
683 { 683 {
687 FreeLibrary(hMzSch); 687 FreeLibrary(hMzSch);
688 hMzSch = 0; 688 hMzSch = 0;
689 FreeLibrary(hMzGC); 689 FreeLibrary(hMzGC);
690 hMzGC = 0; 690 hMzGC = 0;
691 if (verbose) 691 if (verbose)
692 semsg(_(e_loadfunc), thunk->name); 692 semsg(_(e_could_not_load_library_function_str), thunk->name);
693 return FAIL; 693 return FAIL;
694 } 694 }
695 } 695 }
696 for (thunk = mzgc_imports; thunk->name; thunk++) 696 for (thunk = mzgc_imports; thunk->name; thunk++)
697 { 697 {
701 FreeLibrary(hMzSch); 701 FreeLibrary(hMzSch);
702 hMzSch = 0; 702 hMzSch = 0;
703 FreeLibrary(hMzGC); 703 FreeLibrary(hMzGC);
704 hMzGC = 0; 704 hMzGC = 0;
705 if (verbose) 705 if (verbose)
706 semsg(_(e_loadfunc), thunk->name); 706 semsg(_(e_could_not_load_library_function_str), thunk->name);
707 return FAIL; 707 return FAIL;
708 } 708 }
709 } 709 }
710 return OK; 710 return OK;
711 } 711 }