aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/error.hh
diff options
context:
space:
mode:
authorGuillaume Maudoux <guillaume.maudoux@tweag.io>2022-10-17 03:05:02 +0200
committerGuillaume Maudoux <guillaume.maudoux@tweag.io>2022-10-17 03:05:02 +0200
commitb945b844a9ce8479872f6280aedde27e2974b7f3 (patch)
treee5ba8895aeee956f80c5a79d59d8506f2885005b /src/libutil/error.hh
parent3f9f6ae12712b366c038f21de99c8ede6c805be9 (diff)
Initial frames support
Diffstat (limited to 'src/libutil/error.hh')
-rw-r--r--src/libutil/error.hh3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libutil/error.hh b/src/libutil/error.hh
index 50335676e..bf99581e2 100644
--- a/src/libutil/error.hh
+++ b/src/libutil/error.hh
@@ -110,6 +110,7 @@ void printAtPos(const ErrPos & pos, std::ostream & out);
struct Trace {
std::optional<ErrPos> pos;
hintformat hint;
+ bool frame;
};
struct ErrorInfo {
@@ -188,7 +189,7 @@ public:
addTrace(e, hintfmt(std::string(fs), args...));
}
- void addTrace(std::optional<ErrPos> e, hintformat hint);
+ void addTrace(std::optional<ErrPos> e, hintformat hint, bool frame = false);
bool hasTrace() const { return !err.traces.empty(); }
};