Add handling of Cabal errors