summaryrefslogtreecommitdiff
path: root/src/diag.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-11-20 23:32:30 +0100
committerLaurenz <laurmaedje@gmail.com>2022-11-20 23:32:30 +0100
commitddada4509729b0b8dcc394737d7eec588df51040 (patch)
tree828a84eea9488f14878bf0ca16ee121e20a9de29 /src/diag.rs
parent46d469f4bee6afd6b0d7dfdb3f095b98b18ac5f9 (diff)
Tracepoints for show rules
Diffstat (limited to 'src/diag.rs')
-rw-r--r--src/diag.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/diag.rs b/src/diag.rs
index 7631b6d3..613789f8 100644
--- a/src/diag.rs
+++ b/src/diag.rs
@@ -96,6 +96,8 @@ impl SourceError {
pub enum Tracepoint {
/// A function call.
Call(Option<EcoString>),
+ /// A show rule application.
+ Apply(EcoString),
/// A module import.
Import,
}
@@ -109,6 +111,9 @@ impl Display for Tracepoint {
Tracepoint::Call(None) => {
write!(f, "error occured in this function call")
}
+ Tracepoint::Apply(name) => {
+ write!(f, "error occured while applying show rule to this {name}")
+ }
Tracepoint::Import => {
write!(f, "error occured while importing this module")
}