Skip to content

Commit

Permalink
Correct exception type in CommandLineProcessor#processOption (#43)
Browse files Browse the repository at this point in the history
`ISE` -> `COPE`
  • Loading branch information
jisungbin committed Nov 22, 2023
1 parent 5252a80 commit efaf34f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import com.google.auto.service.AutoService
import land.sungbin.composeinvestigator.compiler.ComposeInvestigatorConfiguration.KEY_VERBOSE
import org.jetbrains.kotlin.compiler.plugin.AbstractCliOption
import org.jetbrains.kotlin.compiler.plugin.CliOption
import org.jetbrains.kotlin.compiler.plugin.CliOptionProcessingException
import org.jetbrains.kotlin.compiler.plugin.CommandLineProcessor
import org.jetbrains.kotlin.config.CompilerConfiguration
import org.jetbrains.kotlin.config.CompilerConfigurationKey
Expand All @@ -33,7 +34,7 @@ public class ComposeInvestigatorCommandLineProcessor : CommandLineProcessor {
) {
when (val optionName = option.optionName) {
OPTION_VERBOSE.optionName -> configuration.put(KEY_VERBOSE, value)
else -> error("Unknown plugin option: $optionName")
else -> throw CliOptionProcessingException("Unknown plugin option: $optionName")
}
}

Expand Down

0 comments on commit efaf34f

Please sign in to comment.