mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 01:08:20 +00:00
vim-patch:8.2.1297: when a test fails it's often not easy to see where
Problem: When a test fails it's often not easy to see what the call stack
is.
Solution: Add more entries from the call stack in the exception message.
a5d0423fa1
Use docs from latest Vim.
This commit is contained in:
@@ -278,7 +278,7 @@ bool cause_errthrow(const char *mesg, bool severe, bool *ignore)
|
||||
|
||||
// Get the source name and lnum now, it may change before
|
||||
// reaching do_errthrow().
|
||||
elem->sfile = estack_sfile();
|
||||
elem->sfile = estack_sfile(false);
|
||||
elem->slnum = SOURCING_LNUM;
|
||||
}
|
||||
return true;
|
||||
@@ -490,7 +490,7 @@ static int throw_exception(void *value, except_type_T type, char *cmdname)
|
||||
entry->sfile = NULL;
|
||||
excp->throw_lnum = entry->slnum;
|
||||
} else {
|
||||
excp->throw_name = estack_sfile();
|
||||
excp->throw_name = estack_sfile(false);
|
||||
if (excp->throw_name == NULL) {
|
||||
excp->throw_name = xstrdup("");
|
||||
}
|
||||
|
Reference in New Issue
Block a user