mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 22:16:16 +02:00
Print all stack frames
This commit is contained in:
parent
6a5210f48e
commit
040874e4db
1 changed files with 0 additions and 3 deletions
|
@ -373,7 +373,6 @@ std::ostream & showErrorInfo(std::ostream & out, const ErrorInfo & einfo, bool s
|
||||||
// prepended to each element of the trace
|
// prepended to each element of the trace
|
||||||
auto ellipsisIndent = " ";
|
auto ellipsisIndent = " ";
|
||||||
|
|
||||||
bool frameOnly = false;
|
|
||||||
if (!einfo.traces.empty()) {
|
if (!einfo.traces.empty()) {
|
||||||
// Stack traces seen since we last printed a chunk of `duplicate frames
|
// Stack traces seen since we last printed a chunk of `duplicate frames
|
||||||
// omitted`.
|
// omitted`.
|
||||||
|
@ -384,7 +383,6 @@ std::ostream & showErrorInfo(std::ostream & out, const ErrorInfo & einfo, bool s
|
||||||
|
|
||||||
for (const auto & trace : einfo.traces) {
|
for (const auto & trace : einfo.traces) {
|
||||||
if (trace.hint.str().empty()) continue;
|
if (trace.hint.str().empty()) continue;
|
||||||
if (frameOnly && !trace.frame) continue;
|
|
||||||
|
|
||||||
if (!showTrace && count > 3) {
|
if (!showTrace && count > 3) {
|
||||||
oss << "\n" << ANSI_WARNING "(stack trace truncated; use '--show-trace' to show the full trace)" ANSI_NORMAL << "\n";
|
oss << "\n" << ANSI_WARNING "(stack trace truncated; use '--show-trace' to show the full trace)" ANSI_NORMAL << "\n";
|
||||||
|
@ -400,7 +398,6 @@ std::ostream & showErrorInfo(std::ostream & out, const ErrorInfo & einfo, bool s
|
||||||
printSkippedTracesMaybe(oss, ellipsisIndent, count, skippedTraces, tracesSeen);
|
printSkippedTracesMaybe(oss, ellipsisIndent, count, skippedTraces, tracesSeen);
|
||||||
|
|
||||||
count++;
|
count++;
|
||||||
frameOnly = trace.frame;
|
|
||||||
|
|
||||||
printTrace(oss, ellipsisIndent, count, trace);
|
printTrace(oss, ellipsisIndent, count, trace);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue