Add comment about TTC files in TTC error

This commit is contained in:
arty 2020-06-17 11:34:22 -07:00 committed by G. Allais
parent 7d5788471d
commit 1d14026f9d

View File

@ -263,7 +263,7 @@ perror (BadImplicit fc str)
perror (BadRunElab fc env script)
= pure $ "Bad elaborator script " ++ !(pshow env script) ++ " at:\n" ++ !(ploc fc)
perror (GenericMsg fc str) = pure $ str ++ " at:\n" ++ !(ploc fc)
perror (TTCError msg) = pure $ "Error in TTC file: " ++ show msg
perror (TTCError msg) = pure $ "Error in TTC file: " ++ show msg ++ " (the most likely case is that the ./build directory in your current project contains files from a previous build of idris2 or the idris2 executable is from a different build than the installed .ttc files)"
perror (FileErr fname err)
= pure $ "File error in " ++ fname ++ ": " ++ show err
perror (ParseFail _ err)