patch 9.0.1522: some functions give two error messages
Problem: Some functions give two error messages.
Solution: Do not give a second error message. (closes #12352)
diff --git a/src/testdir/test_expr.vim b/src/testdir/test_expr.vim
index 4e02de0..b3a8c49 100644
--- a/src/testdir/test_expr.vim
+++ b/src/testdir/test_expr.vim
@@ -160,6 +160,8 @@
call assert_equal('edit', "editor"[-10 : 3])
END
call v9.CheckLegacyAndVim9Success(lines)
+
+ call assert_fails('echo strcharpart("", 0, 0, {})', ['E728:', 'E728:'])
endfunc
func Test_getreg_empty_list()