Mercurial > vim
comparison src/typval.c @ 25443:9ed6587bcc0f v8.2.3258
patch 8.2.3258: error messages have the wrong text
Commit: https://github.com/vim/vim/commit/78db17c6f335f518752ca221ec6bde79db584e15
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jul 31 19:12:58 2021 +0200
patch 8.2.3258: error messages have the wrong text
Problem: Error messages have the wrong text.
Solution: Adjust the error message.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 31 Jul 2021 19:15:03 +0200 |
parents | a6c347a0c6e3 |
children | 763ea8f075db |
comparison
equal
deleted
inserted
replaced
25442:18d91a0274aa | 25443:9ed6587bcc0f |
---|---|
716 if (args[idx].v_type != VAR_STRING | 716 if (args[idx].v_type != VAR_STRING |
717 && args[idx].v_type != VAR_NUMBER | 717 && args[idx].v_type != VAR_NUMBER |
718 && args[idx].v_type != VAR_LIST) | 718 && args[idx].v_type != VAR_LIST) |
719 { | 719 { |
720 if (idx >= 0) | 720 if (idx >= 0) |
721 semsg(_(e_string_or_number_or_list_required_for_argument_nr), idx + 1); | 721 semsg(_(e_string_number_or_list_required_for_argument_nr), idx + 1); |
722 else | 722 else |
723 emsg(_(e_stringreq)); | 723 emsg(_(e_stringreq)); |
724 return FAIL; | 724 return FAIL; |
725 } | 725 } |
726 return OK; | 726 return OK; |
747 if (args[idx].v_type != VAR_STRING | 747 if (args[idx].v_type != VAR_STRING |
748 && args[idx].v_type != VAR_LIST | 748 && args[idx].v_type != VAR_LIST |
749 && args[idx].v_type != VAR_DICT) | 749 && args[idx].v_type != VAR_DICT) |
750 { | 750 { |
751 if (idx >= 0) | 751 if (idx >= 0) |
752 semsg(_(e_string_or_list_or_dict_required_for_argument_nr), idx + 1); | 752 semsg(_(e_string_list_or_dict_required_for_argument_nr), idx + 1); |
753 else | 753 else |
754 emsg(_(e_stringreq)); | 754 emsg(_(e_stringreq)); |
755 return FAIL; | 755 return FAIL; |
756 } | 756 } |
757 return OK; | 757 return OK; |
802 if (args[idx].v_type != VAR_LIST | 802 if (args[idx].v_type != VAR_LIST |
803 && args[idx].v_type != VAR_DICT | 803 && args[idx].v_type != VAR_DICT |
804 && args[idx].v_type != VAR_BLOB) | 804 && args[idx].v_type != VAR_BLOB) |
805 { | 805 { |
806 if (idx >= 0) | 806 if (idx >= 0) |
807 semsg(_(e_list_or_dict_or_blob_required_for_argument_nr), idx + 1); | 807 semsg(_(e_list_dict_or_blob_required_for_argument_nr), idx + 1); |
808 else | 808 else |
809 emsg(_(e_listreq)); | 809 emsg(_(e_listreq)); |
810 return FAIL; | 810 return FAIL; |
811 } | 811 } |
812 return OK; | 812 return OK; |