Skip to content

Commit

Permalink
fix(compiler): Fix an error message
Browse files Browse the repository at this point in the history
Make clear that the config argument is optional.

Signed-off-by: Martin Nonnenmacher <martin.nonnenmacher@bosch.com>
  • Loading branch information
mnonnenmacher committed Aug 29, 2024
1 parent b67936d commit ed095a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/compiler/src/main/kotlin/PluginSpecFactory.kt
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ class PluginSpecFactory {
}

return requireNotNull(constructors.singleOrNull()) {
"Plugin class $pluginClass must have exactly one constructor with a PluginDescriptor and a config " +
"argument."
"Plugin class $pluginClass must have exactly one constructor with a PluginDescriptor and an optional " +
"config argument."
}
}

Expand Down

0 comments on commit ed095a6

Please sign in to comment.