aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBen Burdette <bburdette@gmail.com>2020-05-12 13:54:18 -0600
committerBen Burdette <bburdette@gmail.com>2020-05-12 13:54:18 -0600
commit960d4362ed2215f87a596e0a994e39aa28680db1 (patch)
tree02785f438ffe09898c9b8b0bf5e1588989c5a41e /src
parent72ecccee5781ec0b57b2860f677b8a64db43cda7 (diff)
hint only
Diffstat (limited to 'src')
-rw-r--r--src/error-demo/error-demo.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/error-demo/error-demo.cc b/src/error-demo/error-demo.cc
index 8f484431c..82e9f0580 100644
--- a/src/error-demo/error-demo.cc
+++ b/src/error-demo/error-demo.cc
@@ -149,5 +149,13 @@ int main()
.errPos = Pos(problem_file, 40, 13)
}});
+ // Error with only hint and name..
+ logError(
+ ErrorInfo { .name = "error name",
+ .hint = hintfmt("hint %1%", "only"),
+ .nixCode = NixCode {
+ .errPos = Pos(problem_file, 40, 13)
+ }});
+
return 0;
}