summaryrefslogtreecommitdiff
path: root/dhall/src/phase
diff options
context:
space:
mode:
authorNadrieril2019-11-11 12:43:09 +0000
committerNadrieril2019-11-11 13:50:36 +0000
commit330f063e80a51f8f399864f9d01412e1bff34fe9 (patch)
treed008005efc57222c0b33f5069c6ce8576cc7bd43 /dhall/src/phase
parent5d5a356b8eb36e277c312e5550d1cb0a2f82e9fa (diff)
Display first pretty type error
Diffstat (limited to 'dhall/src/phase')
-rw-r--r--dhall/src/phase/typecheck.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/dhall/src/phase/typecheck.rs b/dhall/src/phase/typecheck.rs
index 63f5157..9d2c69b 100644
--- a/dhall/src/phase/typecheck.rs
+++ b/dhall/src/phase/typecheck.rs
@@ -339,7 +339,7 @@ fn type_with(
None => {
return Err(TypeError::new(
ctx,
- TypeMessage::UnboundVariable(var.clone()),
+ TypeMessage::UnboundVariable(span),
))
}
},