Skip to content

Commit

Permalink
Fix missing include error message (#4981)
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Sherman <bentshermann@gmail.com>
  • Loading branch information
bentsherman committed May 9, 2024
1 parent a09e37d commit aad100e
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -19,7 +19,7 @@ class MissingModuleComponentException extends ProcessException {
@PackageScope
static String message(ScriptMeta meta, String name) {
def result = "Cannot find a component with name '$name' in module: $meta.scriptPath"
def names = meta.getDefinitions().collect { it.name }
def names = meta.getDefinitions().findAll { it.name }.collect { it.name }
def matches = names.closest(name)
if( matches )
result += "\n\nDid you mean any of these?\n" + matches.collect { " $it"}.join('\n') + '\n'
Expand Down

0 comments on commit aad100e

Please sign in to comment.