Skip to content

Commit bd87d82

Browse files
authored
Improve error message of missing dependencies of dependency (#1301)
1 parent d9ef296 commit bd87d82

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Spago/Command/Fetch.purs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,8 @@ getPackageDependencies packageName package = case package of
530530
, "However, it didn't contain a `package` section."
531531
]
532532
Left errLines -> die
533-
[ toDoc $ "Could not read config at " <> configLocation
533+
[ toDoc $ "Could not lookup the dependencies of " <> PackageName.print packageName <> " in a spago.yaml config file."
534+
, 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"
534535
, toDoc "Error: "
535536
, indent $ toDoc errLines
536537
]

0 commit comments

Comments
 (0)