Skip to content

Commit

Permalink
Provide a more descriptive error message when a resolution of a speci…
Browse files Browse the repository at this point in the history
…fic `ResolverKey` fails (#6136)

* fix: better error message

* fix: mistyped message

* fix: dot spacing.
  • Loading branch information
agrosner authored Aug 30, 2024
1 parent 4896b0e commit f81fce0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ internal class JavaResolver(
val result = resolve(ResolverKey(kind, id))

check(result != null) {
"Cannot resolve $kind($id)"
"Cannot resolve $kind($id). " +
"Have you set up an 'opposite link' on the downstream project to the schema module as a isADependencyOf(..)?"
}
return result
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ internal class KotlinResolver(
val result = resolve(ResolverKey(kind, id))

check(result != null) {
"Cannot resolve $kind($id)"
"Cannot resolve $kind($id). " +
"Have you set up an 'opposite link' on the downstream project to the schema module as a isADependencyOf(..)?"
}
return result
}
Expand Down

0 comments on commit f81fce0

Please sign in to comment.