comparison src/blob.c @ 30043:fd855ad74887 v9.0.0359

patch 9.0.0359: error message for wrong argument type is not specific Commit: https://github.com/vim/vim/commit/8deb2b30c77035bb682ccf80b781455ac1d6038b Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Fri Sep 2 15:15:27 2022 +0100 patch 9.0.0359: error message for wrong argument type is not specific Problem: Error message for wrong argument type is not specific. Solution: Include more information in the error. (Yegappan Lakshmanan, closes #11037)
author Bram Moolenaar <Bram@vim.org>
date Fri, 02 Sep 2022 16:30:07 +0200
parents cdaff4db7760
children 6c2bbd7d9217
comparison
equal deleted inserted replaced
30042:24d37e312b7b 30043:fd855ad74887
665 } 665 }
666 initial.v_type = VAR_NUMBER; 666 initial.v_type = VAR_NUMBER;
667 initial.vval.v_number = blob_get(b, 0); 667 initial.vval.v_number = blob_get(b, 0);
668 i = 1; 668 i = 1;
669 } 669 }
670 else if (argvars[2].v_type != VAR_NUMBER) 670 else if (check_for_number_arg(argvars, 2) == FAIL)
671 { 671 return;
672 emsg(_(e_number_expected));
673 return;
674 }
675 else 672 else
676 { 673 {
677 initial = argvars[2]; 674 initial = argvars[2];
678 i = 0; 675 i = 0;
679 } 676 }