1
0
forked from GitHub/gf-core

show the value in the error message when failing to get Str from value

This commit is contained in:
aarne
2014-03-17 18:02:07 +00:00
parent 22b68ad30c
commit 891ca74186

View File

@@ -280,7 +280,8 @@ strsFromValue t = case t of
]
VFV 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
[v] -> v