diff options
author | eldritch horrors <pennae@lix.systems> | 2024-03-08 09:47:09 +0100 |
---|---|---|
committer | eldritch horrors <pennae@lix.systems> | 2024-03-09 10:17:26 -0700 |
commit | a9b813cc3bcf89f03de0db96fc2e88d1c83b8303 (patch) | |
tree | b64221dbd3b3461c57e90289cd0539bf96c860dd /src/libutil/error.hh | |
parent | f2e11ddce1ef76d9f653e0c32659d46ff7d6cafa (diff) |
Merge pull request #10066 from 9999years/print-all-frames
Do not skip any stack frames when `--show-trace` is given
(cherry picked from commit 0b47783d0a879875d558f0b56e49584f25ceb2d0)
Change-Id: Ia0f18266dbcf97543110110c655c219c7a3e3270
Diffstat (limited to 'src/libutil/error.hh')
-rw-r--r-- | src/libutil/error.hh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libutil/error.hh b/src/libutil/error.hh index 0d978803e..9cb3a624d 100644 --- a/src/libutil/error.hh +++ b/src/libutil/error.hh @@ -64,7 +64,6 @@ void printCodeLines(std::ostream & out, struct Trace { std::shared_ptr<Pos> pos; HintFmt hint; - bool frame; }; inline bool operator<(const Trace& lhs, const Trace& rhs); @@ -162,7 +161,7 @@ public: addTrace(std::move(e), HintFmt(std::string(fs), args...)); } - void addTrace(std::shared_ptr<Pos> && e, HintFmt hint, bool frame = false); + void addTrace(std::shared_ptr<Pos> && e, HintFmt hint); bool hasTrace() const { return !err.traces.empty(); } |