summaryrefslogtreecommitdiff
path: root/dhall_syntax
diff options
context:
space:
mode:
authorNadrieril2019-11-11 13:49:47 +0000
committerNadrieril2019-11-11 13:55:48 +0000
commitc9c248a4cab21fa1ae7692cd193e3b2c698d431d (patch)
tree186a0dd0598d53334bf46fb81280248edbbb7ded /dhall_syntax
parent207d10c4b7d838d712b135dca56bc31f3fe5b648 (diff)
Add a few more pretty errors
Diffstat (limited to 'dhall_syntax')
-rw-r--r--dhall_syntax/src/core/span.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/dhall_syntax/src/core/span.rs b/dhall_syntax/src/core/span.rs
index 4012cfb..d63a619 100644
--- a/dhall_syntax/src/core/span.rs
+++ b/dhall_syntax/src/core/span.rs
@@ -69,7 +69,7 @@ impl Span {
let message: String = message.into();
let span = match self {
self::Span::Parsed(span) => span,
- _ => return format!("Unknown location: {}", message),
+ _ => return format!("[unknown location] {}", message),
};
let span = Span::new(&*span.input, span.start, span.end).unwrap();
let err: ErrorVariant<!> = ErrorVariant::CustomError { message };