Get the errors from the cache

This commit is contained in:
Jeroen Engels 2023-06-01 13:06:16 +02:00
parent 1e80c184a2
commit 265d45d1d4

View File

@ -4368,6 +4368,7 @@ errorsFromCache cache =
List.concat
[ Dict.foldl (\_ cacheEntry acc -> List.append (ModuleCache.errors cacheEntry) acc) [] cache.moduleContexts
, ProjectFileCache.errorsForMaybe cache.elmJson
, ArbitraryFile.errorsForMaybe cache.arbitraryFiles
, ProjectFileCache.errorsForMaybe cache.readme
, ProjectFileCache.errorsForMaybe cache.dependencies
, Maybe.map EndAnalysisCache.output cache.finalEvaluationErrors |> Maybe.withDefault []