summaryrefslogtreecommitdiff
path: root/src/errors.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-10-16 20:25:23 +0200
committerBram Moolenaar <Bram@vim.org>2020-10-16 20:25:23 +0200
commit1e021e63c565bbb30783a557b4e883cc27f56403 (patch)
tree0e0b4b4b39e9cd3bf76a91c86e3c5f9259fbea79 /src/errors.h
parent7a66a17190f2f64688a697ea29d58388612122ce (diff)
downloadvim-git-1e021e63c565bbb30783a557b4e883cc27f56403.tar.gz
patch 8.2.1854: Vim9: crash when throwing exception for NULL stringv8.2.1854
Problem: Vim9: crash when throwing exception for NULL string. (Dhiraj Mishra) Solution: Handle NULL string like empty string. (closes #7139)
Diffstat (limited to 'src/errors.h')
-rw-r--r--src/errors.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/errors.h b/src/errors.h
index c2dc633f1..7bacbd531 100644
--- a/src/errors.h
+++ b/src/errors.h
@@ -280,4 +280,6 @@ EXTERN char e_missing_name_after_dot[]
INIT(= N_("E1127: Missing name after dot"));
EXTERN char e_endblock_without_block[]
INIT(= N_("E1128: } without {"));
+EXTERN char e_throw_with_empty_string[]
+ INIT(= N_("E1129: Throw with empty string"));
#endif