imp:errors: decode failures now also mention a possible CSV encoding [#2465]

This commit is contained in:
Simon Michael 2025-09-24 10:39:19 -10:00
parent 6fc3e85c2b
commit b5f954abf5

View File

@ -341,7 +341,8 @@ handleExit = flip catches [
noencoding = map toLower enc == "ascii"
msg = unlines $ [
rstrip $ show ex
, "Some text could not be decoded with the system text encoding, " <> enc <> "."
, "Some text could not be decoded with the system's text encoding, " <> enc
, "(or if CSV rules specified it, the CSV's text encoding)."
] ++
if noencoding
then [