Report compiler exception on plugin load fail
This commit is contained in:
@@ -95,10 +95,13 @@ public class K2JVMCompiler extends CLICompiler<K2JVMCompilerArguments> {
|
||||
PluginCliParser.loadPlugins(arguments, configuration);
|
||||
}
|
||||
catch (CliOptionProcessingException e) {
|
||||
// TODO Print usage?
|
||||
messageCollector.report(CompilerMessageSeverity.ERROR, e.getMessage(), CompilerMessageLocation.NO_LOCATION);
|
||||
return INTERNAL_ERROR;
|
||||
}
|
||||
catch (Throwable t) {
|
||||
MessageCollectorUtil.reportException(messageCollector, t);
|
||||
return INTERNAL_ERROR;
|
||||
}
|
||||
|
||||
if (arguments.script) {
|
||||
if (arguments.freeArgs.isEmpty()) {
|
||||
|
||||
Reference in New Issue
Block a user