Skip to content

Commit

Permalink
Improve error message of missing dependencies of dependency (#1301)
Browse files Browse the repository at this point in the history
  • Loading branch information
flip111 authored Jan 17, 2025
1 parent d9ef296 commit bd87d82
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Spago/Command/Fetch.purs
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,8 @@ getPackageDependencies packageName package = case package of
, "However, it didn't contain a `package` section."
]
Left errLines -> die
[ toDoc $ "Could not read config at " <> configLocation
[ toDoc $ "Could not lookup the dependencies of " <> PackageName.print packageName <> " in a spago.yaml config file."
, toDoc $ "Either make sure this file exists and is readable or declare its dependencies in your project's spago.yaml under workspace.extraPackages." <> PackageName.print packageName <> ".dependencies"
, toDoc "Error: "
, indent $ toDoc errLines
]
Expand Down

0 comments on commit bd87d82

Please sign in to comment.