Mercurial > vim
diff src/errors.h @ 32454:db97ccaaa7c8 v9.0.1558
patch 9.0.1558: wrong error for unreachable code after :throw
Commit: https://github.com/vim/vim/commit/a2c0028fdf8dcf0408e27be730ac0e691ef9559b
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun May 14 22:05:15 2023 +0100
patch 9.0.1558: wrong error for unreachable code after :throw
Problem: Wrong error for unreachable code after :throw.
Solution: Adjust the error message.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 14 May 2023 23:15:03 +0200 |
parents | ffbae151e462 |
children | d6055989fa27 |
line wrap: on
line diff
--- a/src/errors.h +++ b/src/errors.h @@ -2809,8 +2809,8 @@ EXTERN char e_expected_nr_items_but_got_ INIT(= N_("E1093: Expected %d items but got %d")); EXTERN char e_import_can_only_be_used_in_script[] INIT(= N_("E1094: Import can only be used in a script")); -EXTERN char e_unreachable_code_after_return[] - INIT(= N_("E1095: Unreachable code after :return")); +EXTERN char e_unreachable_code_after_str[] + INIT(= N_("E1095: Unreachable code after :%s")); EXTERN char e_returning_value_in_function_without_return_type[] INIT(= N_("E1096: Returning a value in a function without a return type")); EXTERN char e_line_incomplete[]