comparison src/vim9execute.c @ 25260:a60895011da9 v8.2.3166

patch 8.2.3166: Vim9: nested autoload call error overruled by "Unknown error" Commit: https://github.com/vim/vim/commit/b5841b99e678da187b68c21f46d56a608a0dc10c Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jul 15 18:09:53 2021 +0200 patch 8.2.3166: Vim9: nested autoload call error overruled by "Unknown error" Problem: Vim9: nested autoload call error overruled by "Unknown error". Solution: Check need_rethrow before giving an "Unknown error". (closes #8568)
author Bram Moolenaar <Bram@vim.org>
date Thu, 15 Jul 2021 18:15:04 +0200
parents fbb530e081ca
children 078edc1821bf
comparison
equal deleted inserted replaced
25259:e1d3345ff21c 25260:a60895011da9
4735 } 4735 }
4736 4736
4737 // Not sure if this is necessary. 4737 // Not sure if this is necessary.
4738 suppress_errthrow = save_suppress_errthrow; 4738 suppress_errthrow = save_suppress_errthrow;
4739 4739
4740 if (ret != OK && did_emsg_cumul + did_emsg == did_emsg_before) 4740 if (ret != OK && did_emsg_cumul + did_emsg == did_emsg_before
4741 && !need_rethrow)
4741 semsg(_(e_unknown_error_while_executing_str), 4742 semsg(_(e_unknown_error_while_executing_str),
4742 printable_func_name(ufunc)); 4743 printable_func_name(ufunc));
4743 funcdepth_restore(orig_funcdepth); 4744 funcdepth_restore(orig_funcdepth);
4744 return ret; 4745 return ret;
4745 } 4746 }