diff options
author | Nadrieril | 2019-11-11 13:49:47 +0000 |
---|---|---|
committer | Nadrieril | 2019-11-11 13:55:48 +0000 |
commit | c9c248a4cab21fa1ae7692cd193e3b2c698d431d (patch) | |
tree | 186a0dd0598d53334bf46fb81280248edbbb7ded /dhall_syntax/src | |
parent | 207d10c4b7d838d712b135dca56bc31f3fe5b648 (diff) |
Add a few more pretty errors
Diffstat (limited to 'dhall_syntax/src')
-rw-r--r-- | dhall_syntax/src/core/span.rs | 2 |
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 }; |