comparison src/typval.c @ 26602:fac6673086df v8.2.3830

patch 8.2.3830: error messages are spread out Commit: https://github.com/vim/vim/commit/e124204c4f8ea8b4fe5357b7613092a7acb5feb8 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Dec 16 20:56:57 2021 +0000 patch 8.2.3830: error messages are spread out Problem: Error messages are spread out. Solution: Move more error messages to errors.h.
author Bram Moolenaar <Bram@vim.org>
date Thu, 16 Dec 2021 22:00:05 +0100
parents 0d2a709e2ff0
children a28f91b893b2
comparison
equal deleted inserted replaced
26601:dd5a2a697523 26602:fac6673086df
1666 // Isolate the option name and find its value. 1666 // Isolate the option name and find its value.
1667 option_end = find_option_end(arg, &scope); 1667 option_end = find_option_end(arg, &scope);
1668 if (option_end == NULL) 1668 if (option_end == NULL)
1669 { 1669 {
1670 if (rettv != NULL) 1670 if (rettv != NULL)
1671 semsg(_("E112: Option name missing: %s"), *arg); 1671 semsg(_(e_option_name_missing_str), *arg);
1672 return FAIL; 1672 return FAIL;
1673 } 1673 }
1674 1674
1675 if (!evaluate) 1675 if (!evaluate)
1676 { 1676 {
1684 rettv == NULL ? NULL : &stringval, NULL, scope); 1684 rettv == NULL ? NULL : &stringval, NULL, scope);
1685 1685
1686 if (opt_type == gov_unknown) 1686 if (opt_type == gov_unknown)
1687 { 1687 {
1688 if (rettv != NULL) 1688 if (rettv != NULL)
1689 semsg(_(e_unknown_option), *arg); 1689 semsg(_(e_unknown_option_str), *arg);
1690 ret = FAIL; 1690 ret = FAIL;
1691 } 1691 }
1692 else if (rettv != NULL) 1692 else if (rettv != NULL)
1693 { 1693 {
1694 rettv->v_lock = 0; 1694 rettv->v_lock = 0;
1885 } 1885 }
1886 } 1886 }
1887 1887
1888 if (*p != '"') 1888 if (*p != '"')
1889 { 1889 {
1890 semsg(_("E114: Missing quote: %s"), *arg); 1890 semsg(_(e_missing_double_quote_str), *arg);
1891 return FAIL; 1891 return FAIL;
1892 } 1892 }
1893 1893
1894 // If only parsing, set *arg and return here 1894 // If only parsing, set *arg and return here
1895 if (!evaluate) 1895 if (!evaluate)
2025 } 2025 }
2026 } 2026 }
2027 2027
2028 if (*p != '\'') 2028 if (*p != '\'')
2029 { 2029 {
2030 semsg(_("E115: Missing quote: %s"), *arg); 2030 semsg(_(e_missing_single_quote_str), *arg);
2031 return FAIL; 2031 return FAIL;
2032 } 2032 }
2033 2033
2034 // If only parsing return after setting "*arg" 2034 // If only parsing return after setting "*arg"
2035 if (!evaluate) 2035 if (!evaluate)