diff options
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/eval.c b/src/eval.c index 56bb21f9b..e588c23e9 100644 --- a/src/eval.c +++ b/src/eval.c @@ -9084,6 +9084,17 @@ assert_bool(typval_T *argvars, int isTrue) } void +assert_report(typval_T *argvars) +{ + garray_T ga; + + prepare_assert_error(&ga); + ga_concat(&ga, get_tv_string(&argvars[0])); + assert_error(&ga); + ga_clear(&ga); +} + + void assert_exception(typval_T *argvars) { garray_T ga; |