summaryrefslogtreecommitdiff
path: root/src/diag.rs
diff options
context:
space:
mode:
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")
}