Make impossible error more specific
This commit is contained in:
parent
a3f62bdd14
commit
e4fc35c901
1 changed files with 2 additions and 1 deletions
|
@ -139,7 +139,8 @@ makeCopy alreadyCopied variable = do
|
|||
() | mark desc == alreadyCopied ->
|
||||
case copy desc of
|
||||
Just v -> return v
|
||||
Nothing -> error "This should be impossible."
|
||||
Nothing -> error $ "Error copying type variable. This should be impossible." ++
|
||||
" Please report an error to the github repo!"
|
||||
|
||||
| rank desc /= noRank || flex desc == Constant ->
|
||||
return variable
|
||||
|
|
Loading…
Reference in a new issue