Github user mhfrantz commented on a diff in the pull request: https://github.com/apache/incubator-tinkerpop/pull/110#discussion_r42271237 --- Diff: gremlin-console/src/main/groovy/org/apache/tinkerpop/gremlin/console/commands/InstallCommand.groovy --- @@ -53,6 +53,12 @@ class InstallCommand extends CommandSupport { final def pluginsThatNeedRestart = grabDeps(dep) return "Loaded: " + arguments + (pluginsThatNeedRestart.size() == 0 ? "" : " - restart the console to use $pluginsThatNeedRestart") } catch (Exception ex) { + if (!(ex instanceof IllegalStateException)) { + // IllegalStateException is thrown if a module with the same name is already installed. + final def uninstall = new UninstallCommand(shell, mediator) + final List<String> module = Collections.singletonList(artifact.getArtifact()) + uninstall.execute(module) --- End diff -- Can uninstall throw an exception?
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---