Skip to content

Commit

Permalink
Improve error message of missing dependencies of dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
flip111 committed Nov 5, 2024
1 parent fb24ee6 commit 4fe24cc
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 it's dependencies in your project spago.yaml under workspace.extraPackages." <> PackageName.print packageName <> ".dependencies"
, toDoc "Error: "
, indent $ toDoc errLines
]
Expand Down

0 comments on commit 4fe24cc

Please sign in to comment.