Skip to content

Commit b1c0550

Browse files
committed
show some context on this error
1 parent 605e06a commit b1c0550

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/HVML/Inject.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ doInjectCoreAt book core host argList = do
130130
else do
131131
return $ m
132132
Nothing -> do
133-
error $ "Unbound variable: " ++ name)
133+
error $ "Unbound variable: \n\x1b[2m" ++ name ++ "\n\x1b[0mIn term:\n\x1b[2m" ++ Data.List.take 256 (coreToString core) ++ "...\x1b[0m")
134134
(args state)
135135
(vars state)
136136
got host

0 commit comments

Comments
 (0)