Mercurial > vim
comparison src/message.c @ 21493:7449921216bc v8.2.1297
patch 8.2.1297: when a test fails it's often not easy to see where
Commit: https://github.com/vim/vim/commit/a5d0423fa16f18b4576a2a07e50034e489587a7d
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jul 26 15:37:02 2020 +0200
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 26 Jul 2020 15:45:04 +0200 |
parents | 6a4806e326dd |
children | 3e5d0832a2e7 |
comparison
equal
deleted
inserted
replaced
21492:fb81749507a4 | 21493:7449921216bc |
---|---|
459 { | 459 { |
460 char_u *Buf, *p; | 460 char_u *Buf, *p; |
461 | 461 |
462 if (SOURCING_NAME != NULL && other_sourcing_name()) | 462 if (SOURCING_NAME != NULL && other_sourcing_name()) |
463 { | 463 { |
464 char_u *sname = estack_sfile(); | 464 char_u *sname = estack_sfile(FALSE); |
465 char_u *tofree = sname; | 465 char_u *tofree = sname; |
466 | 466 |
467 if (sname == NULL) | 467 if (sname == NULL) |
468 sname = SOURCING_NAME; | 468 sname = SOURCING_NAME; |
469 | 469 |