mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-21 09:02:50 -06:00
show the value in the error message when failing to get Str from value
This commit is contained in:
@@ -280,7 +280,8 @@ strsFromValue t = case t of
|
|||||||
]
|
]
|
||||||
VFV ts -> mapM strsFromValue ts >>= return . concat
|
VFV ts -> mapM strsFromValue ts >>= return . concat
|
||||||
VStrs ts -> mapM strsFromValue ts >>= return . concat
|
VStrs ts -> mapM strsFromValue ts >>= return . concat
|
||||||
_ -> fail "cannot get Str from value"
|
|
||||||
|
_ -> fail ("cannot get Str from value " ++ show t)
|
||||||
|
|
||||||
vfv vs = case nub vs of
|
vfv vs = case nub vs of
|
||||||
[v] -> v
|
[v] -> v
|
||||||
|
|||||||
Reference in New Issue
Block a user